인셔셔RSS 관심 있는 블로그, 뉴스, 기술 정보를 효율적으로 추적하고 읽으세요
원문 읽기 InertiaRSS에서 열기

추천 피드

Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
M
MIT News - Artificial intelligence
博客园 - 叶小钗
MyScale Blog
MyScale Blog
V
Visual Studio Blog
月光博客
月光博客
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
量子位
I
InfoQ
有赞技术团队
有赞技术团队
阮一峰的网络日志
阮一峰的网络日志
Jina AI
Jina AI
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Blog — PlanetScale
Blog — PlanetScale
Last Week in AI
Last Week in AI
雷峰网
雷峰网
Stack Overflow Blog
Stack Overflow Blog
博客园 - Franky

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python)
19/30일 시스템 설계 질문!
Joud Awad · 2026-05-25 · via DEV Community
Cover image for 19/30 Days System Design Questions!

Joud Awad

당신의 체크아웃 엔드포인트는 400ms의 P95를 가지고 있습니다. 프로파일링 결과, 그 중 70%가 DB 읽기에 해당합니다.

읽기 리플리카를 추가하고 모든 SELECT 쿼리를 그것을 가리키도록 합니다. P95는 90ms로 낮아집니다. 팀은 축하합니다.

두 시간 후, 지원 티켓이 속수무책으로 쏟아집니다. 고객들은 배송 주소를 업데이트하지만 확인 화면에서 오래된 주소를 본다. 한 고객은 두 번 청구되었는데, "주문이 이미 존재한다"는 확인을 읽은 시간이 지나서 데이터가 상태가 아니어서 중복을 놓쳤기 때문입니다.

설치는 다음과 같습니다:
• Primary → 모든 쓰기 처리, 복제 지연 ~200ms
• Replica → 읽기 100% 처리
• 영향을 받는 흐름 → 프로필 업데이트, 주문 중복 제거, 결제 단일성

복제본은 정확히 설계된 대로 작동하고 있습니다. 그게 문제입니다.

무엇을 해야 합니까?

A) 읽기-쓰기 일관성: 사용자가 쓰기 후 짧은 시간 동안 읽기를 주 서버로 라우팅합니다.
B) 동기 복제: 쓰기를 확인하기 전에 복제 서버가 확인할 때까지 주 서버를 기다립니다.
C) 복제 서버 지연 모니터링 + 재시도: 지연이 임계값을 초과할 때를 감지하고 주 서버로 되돌아갑니다.
D) 중요 읽기를 주 서버로 라우팅: 복제 서버는 분석과 같은 비중요 읽기만 처리합니다.

네 네 네 네 모두 실제로 운영 중인 패턴입니다. 하나만 최근에 출시한 성능 우위를 파괴하지 않고 stale-read 문제를 해결할 수 있습니다.

하나를 선택하시오 (A, B, C, 또는 D) 그리고 왜 그런지 알려주세요. 댓글에 전면적인 분석이 포함되어 있으며, 어떤 답변이 주니어 엔지니어 함정인지도 포함합니다.

팀이 읽기 리플리카를 추가하고 stale 데이터를 디버깅하는 데 한 주를 보냈었다면 이를 공유해주세요.

답변을 남기세요 👇

30DaysOfSystemDesign #SystemDesign #Databases #SoftwareArchitecture