Archtin

Blog

System design, taken apart properly.

Long-form breakdowns of real systems — the architecture, the failure modes, and how to actually present them in an interview.

78 articles across 8 topics.

System Design

25 articles
Stop Adding14 min
System DesignOct 7, 2026

Stop Adding AI to Everything: Choose the Simplest Reliable Solution

Log alerts, rate limits, slow queries, caches, service calls, and deployments: solve the deterministic problem first. Add AI where uncertainty actually exists.

Read article
Little's Law12 min
System DesignSep 30, 2026

Little's Law Explained: The One Formula That Connects Latency, Throughput, and Concurrency

Little's Law says concurrency equals arrival rate times time-in-system. One line of arithmetic sizes your thread pools, connection pools, and load tests — and explains why latency and throughput are the same knob.

Read article
Behind Scenes24 min
System DesignSep 22, 2026

Behind the Scenes: 11 Technologies You Use Every Day

Follow the real paths behind eleven familiar technologies—from a B+ tree page lookup and JWT verification to DNS resolution, a TLS handshake and health-aware load balancing.

Read article
Tech You17 min
System DesignSep 21, 2026

Tech You Know But Don't Really Understand: What Happens Underneath

Knowing the name isn't understanding the technology. Ten everyday systems — Kafka, Redis, Kubernetes, indexes, load balancers, CDNs, Docker, API gateways and WebSockets — explained by what happens underneath.

Read article
Distributed Locks16 min
System DesignSep 16, 2026

Distributed Locks: What They Are and How Not to Get Burned

Two workers, one cron, one payout — sent twice. A mutex cannot help you here: there is no shared memory to guard. This is what a distributed lock really buys you, and what it quietly does not.

Read article
ChatGPT Scale14 min
System DesignSep 15, 2026

How to Design ChatGPT at Scale

The model is not the interesting part. The interesting part is that every request occupies expensive hardware for many seconds, streams its output, and costs real money per token.

Read article
Start ANY12 min
System DesignSep 15, 2026

How to Start ANY System Design Interview

Most system design interviews are decided in the first ten minutes. Not by what you design, but by whether you established what you were designing for.

Read article
Rate Limiter13 min
System DesignSep 15, 2026

Design a Rate Limiter for 10M Users

Choosing the algorithm is the easy part. The interview is really about distributed shared state: how twenty instances agree on one counter without adding a round trip to every request.

Read article
Users Are13 min
System DesignSep 15, 2026

Users Are Getting Duplicate Payments. Find the Bug.

Duplicate charges are almost never a UI problem. They are a retry meeting a write that was never idempotent — and the fix is a unique constraint written before the money moves.

Read article
Blinkit Finds13 min
System DesignSep 15, 2026

How Blinkit Finds the Nearest Delivery Partner

The nearest-rider query is the easy half. The hard half is that every rider reports a new location every four seconds, and the answer must be correct three seconds later.

Read article
Your Kafka12 min
System DesignSep 15, 2026

Your Kafka Consumer Is Getting Slower. Now What?

Consumer lag has three completely different causes that look identical on a dashboard. Aggregate lag hides all of them — per-partition lag tells you which one you have.

Read article
Your Redis12 min
System DesignSep 15, 2026

Your Redis Cache Suddenly Became Useless

Redis is almost never the problem. The caching strategy wrapped around it is. Here is how to find out which of the seven failure modes you are in, using numbers Redis already gives you.

Read article
Instagram Handles13 min
System DesignSep 15, 2026

How Instagram Handles 1 Billion Likes

A like looks trivial and is one of the best scale questions there is: extreme write volume, extreme read fan-out, hot keys, and a count that must be fast but only approximately correct.

Read article
Happens When13 min
System DesignSep 15, 2026

What Happens When 10M Users Hit Your API?

Traffic does not break systems uniformly. It finds the one resource with the lowest ceiling — usually database connections or worker threads — and everything downstream cascades from there.

Read article
Your Database12 min
System DesignSep 15, 2026

Your Database Is at 100% CPU. What Do You Do?

A database at 100% CPU is rarely out of capacity. It is usually one bad plan, one missing index, or one broken cache. Here is the order to check things in — and how to say it in an interview.

Read article
Top System14 min
System DesignSep 15, 2026

Top 10 System Design Interview Questions (With Answers)

Ten questions cover most of what senior system design interviews actually test. Here is a crisp answer to each, the trap hidden inside it, and a deep dive link when you want the full reasoning.

Read article
Firewall Actually16 min
System DesignAug 23, 2026

Firewall Explained: How It Actually Secures an Organisation

A firewall is not just a box that blocks ports. It is a policy engine that decides which traffic is trustworthy based on identity, state, behaviour and context. Here is how that decision is made.

Read article
MCP Works14 min
System DesignAug 19, 2026

How MCP Works: The Model Context Protocol, Explained by Design

MCP is not a product, it is a wire protocol. Once you see it as JSON-RPC plus a capability handshake plus two transports, the whole thing becomes obvious — and so do its failure modes.

Read article
Graph Engineering15 min
System DesignAug 19, 2026

Graph Engineering in AI: Agentic Graphs vs Knowledge Graphs

One phrase, two disciplines. Agentic graph engineering shapes how an LLM application executes; knowledge graph engineering shapes what it knows. Confusing them is why so many AI architecture discussions go sideways.

Read article
Your Own16 min
System DesignAug 19, 2026

Build Your Own Knowledge Graph: A Practical End-to-End Guide

Most knowledge graph tutorials stop at 'here is a node and here is an edge'. This one walks the whole pipeline: ontology first, extraction second, entity resolution third, and only then the database.

Read article
Agentic Workflows15 min
System DesignAug 19, 2026

Build Agentic Workflows with Graph Engineering (LangGraph in Practice)

A prompt chain is a straight line. Real agents need loops, retries, human approval and resumability — and that is exactly what modelling the workflow as a graph gives you.

Read article
GraphRAG Vector14 min
System DesignAug 19, 2026

GraphRAG vs Vector RAG: Which Retrieval Architecture Actually Fits

Vector search answers 'what does the corpus say about X'. It cannot answer 'which suppliers are two hops from a sanctioned entity'. Knowing which question you have is the whole architecture decision.

Read article
Entity Resolution13 min
System DesignAug 19, 2026

Entity Resolution: The Hardest Part of Any Knowledge Graph

Every failed knowledge graph project I have seen failed here. Extraction is easy now; deciding that 'Acme Corp' and 'ACME Corporation Ltd' are one node is still genuinely hard engineering.

Read article
Multi-Agent Orchestration14 min
System DesignAug 19, 2026

Multi-Agent Orchestration Patterns: Supervisor, Pipeline, Swarm and Hierarchy

Multi-agent is a topology decision, not a vibe. Pipeline, supervisor, hierarchy and swarm each fail differently — pick by coupling and failure containment, not by how impressive the diagram looks.

Read article
UPI Payments28 min
System DesignAug 16, 2026

How UPI Payments Actually Work — NPCI, System Design & the Interview Playbook

13+ billion transactions a month, ~7,000 TPS at peak, sub-second settlement, and near-zero tolerance for money loss. Here's how UPI is built — and how to design it on a whiteboard.

Read article

Architecture

14 articles
Kafka Partitions,14 min
Event-DrivenAug 31, 2026

Kafka Explained: Partitions, Offsets, Delivery Guarantees and Rebalances

Kafka is a distributed, append-only log you can replay. Once you accept that ordering only exists inside a partition, almost every design question answers itself.

Read article
Hexagonal Architecture12 min
ArchitectureAug 24, 2026

Hexagonal Architecture (Ports and Adapters): Dependencies Point Inward

Your business rules should not import the web framework, the ORM, or the payment SDK. Invert the arrows and the domain becomes the most stable, fastest-testing part of the system.

Read article
Pipe-and-Filter Architecture11 min
ArchitectureAug 24, 2026

Pipe-and-Filter Architecture: Composable Transformation at Any Scale

Each stage knows its input contract and its output contract, and nothing else. That single constraint is what makes pipelines parallelisable, testable and endlessly recomposable.

Read article
Space-Based Architecture11 min
ArchitectureAug 24, 2026

Space-Based Architecture: Removing the Database From the Hot Path

You can add replicas until the servers are free. If every request still ends at one database, the ceiling never moves. Space-based architecture moves the ceiling.

Read article
Peer-to-Peer Architecture12 min
ArchitectureAug 24, 2026

Peer-to-Peer Architecture: Systems With No Centre

Remove the server and capacity grows with users, failure has no single point — and you inherit discovery, NAT traversal and the problem that peers can lie.

Read article
Serverless Architecture12 min
ArchitectureAug 24, 2026

Serverless Architecture: Scale to Zero, and the Bill for It

Serverless is not 'no servers'. It is 'someone else's servers, billed per millisecond, with constraints you must design around'.

Read article
Microkernel (Plugin)11 min
ArchitectureAug 24, 2026

Microkernel (Plugin) Architecture: A Small Core and Infinite Variation

When the requirement is 'the same product, endlessly customised', the answer is almost never more if-statements. It is an extension contract.

Read article
Service-Oriented Architecture11 min
ArchitectureAug 24, 2026

Service-Oriented Architecture (SOA): The Enterprise Ancestor of Microservices

Microservices did not replace SOA; they dropped the bus and shrank the services. Understanding what SOA got right — and what the ESB got wrong — explains most of modern service design.

Read article
Microservices Architecture14 min
ArchitectureAug 24, 2026

Microservices Architecture: What You Actually Buy and What You Pay

Microservices are an organisational technology with technical consequences. If your teams are not blocked on each other, you are paying the bill without buying anything.

Read article
Client-Server Architecture10 min
ArchitectureAug 24, 2026

Client-Server Architecture: Drawing the Trust Boundary

Thin client, thick client, offline-first, optimistic UI — these are all the same question: where does authority live, and what happens when the network disagrees?

Read article
Layered (N-Tier)10 min
ArchitectureAug 24, 2026

Layered (N-Tier) Architecture: The Industry Default, Done Properly

Almost every codebase you will ever join is layered. Almost none of them chose it deliberately, which is why so many of them hurt.

Read article
Modular Monolith11 min
ArchitectureAug 24, 2026

The Modular Monolith: Microservice Boundaries Without the Bill

The hard part of microservices is the boundaries, not the network. A modular monolith makes you do the hard part first — and lets you skip the network until it earns its place.

Read article
Monolithic Architecture11 min
ArchitectureAug 24, 2026

Monolithic Architecture: Still the Right Default

Most teams that regret their architecture did not regret the monolith. They regretted the twelve services they built before they understood the domain.

Read article
Software Architectures18 min
ArchitectureAug 24, 2026

13 Software Architectures Every Engineer Should Know

Architecture is not a menu of trends. Each style is an answer to a specific pressure — deployment speed, blast radius, team size, latency, cost. Here are thirteen styles and the pressure each one solves.

Read article

Design Patterns

11 articles
Event-Driven Architecture14 min
Design PatternsAug 20, 2026

Event-Driven Architecture: Loose Coupling and the Bill That Comes With It

Adding an analytics consumer should not require a pull request on the order service. That is the promise. The price is that 'done' no longer has a single moment in time.

Read article
Strangler Fig13 min
Design PatternsAug 20, 2026

Strangler Fig: Replacing a Monolith Without a Big-Bang Rewrite

Two years of parallel development, a frozen legacy system and a launch weekend nobody survives. Or: move /products this sprint, keep everything else running, and repeat.

Read article
API Gateway12 min
Design PatternsAug 20, 2026

API Gateway: One Front Door for Many Services

Ten services, three clients, thirty integration points and auth implemented ten slightly different ways. The gateway collapses that into one edge you can actually reason about.

Read article
Cache-Aside Default12 min
Design PatternsAug 20, 2026

Cache-Aside: The Default Caching Strategy and Its Sharp Edges

Your database should not answer the same query ten thousand times an hour. Caching is easy; invalidation, stampedes and staleness are the actual engineering.

Read article
CQRS When13 min
Design PatternsAug 20, 2026

CQRS: When Reads and Writes Stop Wanting the Same Database

Your normalised order schema is perfect for writes and terrible for the six-join query powering search. CQRS stops pretending one model can be optimal for both.

Read article
Idempotency Same12 min
Design PatternsAug 20, 2026

Idempotency: Why the Same Request Twice Must Charge Once

The user tapped PAY NOW once. The network timed out, the SDK retried, and ₹5,000 left their account twice. Idempotency is the cheapest insurance in distributed systems.

Read article
Transactional Outbox13 min
Design PatternsAug 20, 2026

Transactional Outbox: When the Database Commits but Kafka Never Hears

The order exists. The event does not. Inventory never reserved, the warehouse never printed a label, and no error was logged anywhere. The dual-write problem, and its standard fix.

Read article
Bulkhead Pattern11 min
Design PatternsAug 20, 2026

Bulkhead Pattern: Containing the Blast Radius

Recommendations went slow and payments stopped. Not because they were related — because they shared a thread pool. Bulkheads make that impossible by construction.

Read article
Circuit Breaker12 min
Design PatternsAug 20, 2026

Circuit Breaker: Stop One Slow Service From Taking Down Everything

Checkout did not break. It waited. Threads piled up behind a slow recommendation call until the pool was gone. A circuit breaker is how you refuse to wait.

Read article
Saga Pattern13 min
Design PatternsAug 20, 2026

Saga Pattern: Transactions That Span Multiple Services

Payment succeeded, inventory failed, the customer is charged for stock you do not have. A saga is the disciplined answer to partial failure across service boundaries.

Read article
Patterns You16 min
Design PatternsAug 20, 2026

10 Design Patterns You Need in the AI Era

Code generation got cheap. Reasoning about production failure modes did not. These ten patterns are the vocabulary senior engineers use to describe what breaks and why it stays contained.

Read article

APIs & HTTP

10 articles
Realtime APIs13 min
APIsAug 22, 2026

Realtime APIs: WebSockets vs SSE vs Long Polling vs Webhooks

Most teams reach for WebSockets when Server-Sent Events would do the job over ordinary HTTP with free reconnection. Here is how to tell the difference before you commit.

Read article
gRPC Protobuf,13 min
APIsAug 22, 2026

gRPC Explained: Protobuf, HTTP/2, Streaming and Deadlines

Contract-first RPC over HTTP/2 with binary payloads. Smaller, faster and strictly typed — at the cost of browser support and human readability.

Read article
GraphQL Schema,14 min
APIsAug 22, 2026

GraphQL Explained: Schema, Resolvers, N+1 and When Not To Use It

One endpoint, a typed schema, and clients that ask for exactly what they need. The power is real; so are the N+1 queries, the lost HTTP caching and the DoS surface.

Read article
REST API13 min
APIsAug 22, 2026

REST API Design: Constraints, Resources, Versioning and Pagination

REST is a set of architectural constraints, not a JSON-over-HTTP aesthetic. The constraints are what buy you caching, scalability and clients that do not break.

Read article
Types APIs14 min
APIsAug 22, 2026

Types of APIs Explained: REST, GraphQL, gRPC, WebSockets, Webhooks and More

There is no best API style. There is a request/response axis, a streaming axis, and a who-calls-whom axis — and most real systems use three of these at once.

Read article
HTTP Status12 min
HTTPAug 22, 2026

HTTP Status Codes and Headers: The Practical Guide

Returning 200 with an error inside the body is the most common API design mistake there is. Status codes are the machine-readable half of your contract.

Read article
PUT PATCH12 min
HTTPAug 22, 2026

PUT vs PATCH vs POST: Choosing the Right Write Method

They all write. They differ in who owns the resource identity, whether the payload is complete, and what happens when the client retries after a timeout.

Read article
All HTTP13 min
HTTPAug 22, 2026

All HTTP Methods Explained: GET, POST, PUT, PATCH, DELETE and the Rest

Methods are contracts, not labels. Safety and idempotency decide what a proxy may cache, what a client may retry, and what a crawler is allowed to touch.

Read article
Everything You14 min
HTTPAug 22, 2026

Everything You Need to Know About an HTTP Request

An HTTP request is a plain text envelope on top of a very carefully engineered stack. Here is the whole journey — resolution, handshake, framing, headers, body, response, reuse.

Read article
Every Part14 min
WebAug 16, 2026

Every Part of a URL, Explained — Scheme, Host, Path, Query & Fragment

You read hundreds of URLs a day and probably can't name half their parts. Here's the full anatomy of a URL, with diagrams — and the rule for choosing path parameters over query parameters in API design.

Read article

DevOps & Cloud

8 articles
DevOps Cloud20 min
DevOpsOct 2, 2026

5 DevOps + AI + Cloud Projects That Actually Stand Out

Not another CRUD app. Five projects—incident copilot, AI CI/CD, self-healing Kubernetes, cost optimizer and security engine—with build guides and reference repos.

Read article
DevOps Concepts15 min
DevOpsSep 26, 2026

5 DevOps Concepts Developers Usually Get Wrong

Five familiar DevOps terms hide important operational differences. Learn the mechanism, the common mistake, and what changes in production.

Read article
Code Flows22 min
DevOpsSep 23, 2026

How Code Flows: From Local Development to Production

A visual, end-to-end trace of how one code change becomes a versioned production deployment—and how the platform validates, routes, observes, scales and rolls it back.

Read article
Nginx Reverse13 min
InfrastructureAug 31, 2026

Nginx Explained: Reverse Proxy, Load Balancing, TLS and Tuning

Nginx sits in front of almost everything you deploy. Understanding its worker model, its upstream timeouts and its caching rules is the difference between a 502 you can explain and one you cannot.

Read article
Request That13 min
NetworkingAug 30, 2026

The Request That Never Reached Your Server

A 200 OK does not mean your backend generated the response. Between your browser and your server there are five-plus layers, and the request can stop at almost every one of them.

Read article
AWS Developer's12 min
CloudAug 27, 2026

What Is AWS? A Developer's Guide to the Basics

AWS has hundreds of services, but you only need about fifteen to build almost anything. Here is what AWS actually is, how regions and availability zones work, the core building blocks, and how billing and security really function.

Read article
AWS Trillion-Dollar10 min
CloudAug 27, 2026

The AWS Trillion-Dollar Billing Bug: What Happened and What Developers Should Learn

A configuration change put a unit-pricing error into the AWS estimated-billing pipeline. Alarms fired but paged nobody, the rollback failed, and cost alerts were switched off platform-wide. The absurd numbers are the least interesting part.

Read article
SQL Injection12 min
SecurityAug 25, 2026

SQL Injection Explained: How It Works, When It Happens, and How to Stop It

SQL injection is still one of the most common ways applications leak or destroy data. Here is how the attack works, what vulnerable code looks like, and how to defend against it in production.

Read article

Frontend

3 articles

Careers & Craft

4 articles