System Design
Study scalability, distributed systems, and real-world architecture at scale
Navigate through content by publication date
Thu, Dec 3
10 items found
Five Ways a Redis Rate Limiter Breaks (and the Rule Behind Most of Them)
"Design a rate limiter" is one of the most common system design questions. The usual answer is a counter in Redis: read the count, compare it with the limit, write the count plus one. It passes every test that sends one request at a time. I spent a week building the version that holds up, as a runnable system in the interview-traps repo: one design lesson, five traps and a rollup. Each trap has the naive code, the fix and a proof test. This post is the short version: one rule that covers mos...
Continuous reinvention: Volumes that fit
In this guest post, Marc Olson reminds us that every once in a while you have to step back and look at what you've built, not to admire it, but to look for new opportunities that you may not have realized you created.
What Is Microservices Architecture? Components, Benefits & Best Practices
Modern applications have to handle millions of users, ship features quickly, and stay online around the clock. Traditional, single-codebase software struggles with all three. That is why microservices architecture has become the standard way to build scalable, cloud-ready applications. Instead of one large application, microservices architecture splits software into small, independent services. Each service does one job and can be built, deployed and scaled on its own. In this guide you will ...
Kafka partitions for system design interviews: keys, ordering, consumer groups and when to commit
The interview question: "Your order service publishes events to Kafka. Events for one account must be processed in order, but you also need to process thousands per second. How do you design the topic?" This is where Kafka answers fall apart: candidates know the words (topic, partition, consumer group) but not the guarantees each one gives. Here is the walkthrough, round by round, with the simulations from the Designbench Kafka partitions lesson. Round 1: Where ordering comes from...
Learning System Design? Wanna practice and test your skills?
This is one of the recently asked Amazon SDE-2 / Senior system design questions (order updates, delivery alerts, OTPs, promo pushes). 1. Requirements & Scale Targets Functional: Accept notification requests from internal services (order, shipping, marketing) for Push, Email, and SMS. Respect user preferences and quiet hours (don't wake users at 3 AM for promo alerts). Non-Functional: Traffic: 25,000 RPS sustained, spiking to 35,000 RPS (90% writes / 10% reads) Laten...
What Are the Biggest Challenges in Designing Scalable Software Architecture?
What’s the Biggest Challenge You Face When Designing Software Architecture? Writing code is one part of software development. Designing a scalable, maintainable, and reliable system before implementation is a completely different challenge. As developers, we often face questions like: How do you design scalable software architecture? How do you visualize microservices and service communication? How do you design database schemas and ER diagrams? How do you identify architectural bottlene...
Kafka partitions for system design interviews: keys, ordering, consumer groups and when to commit
The interview question: “Your order service publishes events to Kafka.Continue reading on Medium »
DigitalOcean MicroVMs Simplify Agentic Workflows with Isolated, Resumable Virtual Machines
DigitalOcean MicroVMs, now generally available, provide fast, isolated, on-demand virtual machines designed for AI agents, coding platforms, and other workloads requiring secure compute environments that can be paused and resumed without incurring idle compute charges. By Sergio De Simone
How LLMs See a Picture
In this article, we’ll look at how LLMs see a picture.
System Design Interview Question: Design a Distributed Key-Value Store
#208: Hash ring, quorums, and storage engine behind every distributed database, explained step by step