Welcome to Algomi Blogs
Who this is for, how to use it to prepare for a Solutions Architect interview, and how a post gets published here.
Created 2026-09-15 · Updated 2026-10-12 · System Design
System design, AI engineering, databases, networking, concurrency and more, written for engineers building real trading and fintech systems — part of the Algomi Suite.
Who this is for, how to use it to prepare for a Solutions Architect interview, and how a post gets published here.
Created 2026-09-15 · Updated 2026-10-12 · System Design
Start here if you are preparing for an Enterprise Solutions Architect interview: the ten-step framework, the landscape you design into, the four diagrams to draw, how to speak about trade-offs, and a worked example.
Created 2026-10-12 · Updated 2026-10-15 · System Design
An original system design series — five foundation guides, fifteen focused case studies, and two deep dives — start here.
Created 2026-09-15 · Updated 2026-10-12 · System Design
Follow one school library's reservation app from a single server to forty schools: requirements, estimation, scaling, storage choices, replication, consistency, CAP/PACELC, and the hashing tricks behind large-scale systems. Every idea arrives because a real problem forces it. Guide 1 of 5.
Created 2026-09-15 · Updated 2026-10-15 · System Design
Follow Riya's tap on 'Reserve' from her phone to the library's database and back: IP, DNS, HTTP, TCP/UDP, CDNs, load balancers, proxies, API styles and live updates, each introduced by the problem that forces it. Guide 2 of 5.
Created 2026-09-15 · Updated 2026-10-15 · System Design
Follow one school library's reservation app from a single program to a system with a broker, outbox, saga and read model. Every pattern arrives because a real complaint forces it: monoliths vs microservices, async jobs, queues and streams, delivery guarantees, retries, outbox, sagas, CQRS, event sourcing, and the object patterns inside the code. Guide 3 of 5.
Created 2026-09-15 · Updated 2026-10-15 · System Design
Meera's library app has a very bad term: a dead server, a lost zone, a runaway retry storm, a deleted table and a stolen reservation. Each disaster introduces one idea: SLIs/SLOs, redundancy and failover, circuit breakers and rate limiting, authentication vs authorization, OAuth/OIDC, and recovery targets. Guide 4 of 5.
Created 2026-09-15 · Updated 2026-10-15 · System Design
Arjun, who built the library app in guides 1 to 4, sits a system design interview and is asked to design... a library reservation system. Follow his 45 minutes: scope, data, API, the last-copy race, lost responses, failures, growth, then two follow-up cases (async reports, a live feed), and the two-week plan he used to prepare. Guide 5 of 5.
Created 2026-09-15 · Updated 2026-10-15 · System Design
From one guesthouse in Goa to 80,000 hotels: how a booking system claims every night of a stay exactly once, keeps payment uncertainty away from inventory, and stops two guests winning the same room. Includes the three follow-up questions interviewers use to separate good answers from great ones.
Created 2026-09-16 · Updated 2026-10-15 · System Design
Follow Ananya and her father from Pune to Srinagar via Delhi, through a fog cancellation and an aircraft swap, to see how an airline system models dated flights, multi-leg bookings and disruptions as durable workflows instead of simple status edits.
Created 2026-09-16 · Updated 2026-10-15 · System Design
Back-to-school season at an online stationery shop: why on-hand stock isn't available stock, how atomic reservations stop two orders claiming the same calculator, and how shipments, cancellations and warehouse transfers stay honest.
Created 2026-09-16 · Updated 2026-10-15 · System Design
A monsoon power flicker hits a village ATM just as ₹10,000 slides out. How do you design a withdrawal that survives a network failure between the bank's authorization and the machine dispensing cash, when cash can never be rolled back?
Created 2026-09-16 · Updated 2026-10-15 · System Design
A stolen laptop, a forgotten password and a 'Sign in with Google' button: follow one student's account to design registration, login, sessions, recovery, MFA and OIDC sign-in around durable identity instead of trusted client claims.
Created 2026-09-16 · Updated 2026-10-15 · System Design
A national e-textbook platform, results day, and one leaked answer key: how a CDN serves popular content close to readers, why the cache key is a correctness decision, and how to stop a stampede from flattening the origin.
Created 2026-09-16 · Updated 2026-10-15 · System Design
Sunita uploads 400 wedding photos from a train with patchy Wi-Fi. Follow them through a photo service that separates bytes from metadata, treats upload, processing and deletion as retryable workflows, and borrows one big idea from Facebook's Haystack.
Created 2026-09-16 · Updated 2026-10-15 · System Design
Every Monday at 08:00, 600 schools send progress reports to parents. One Monday some parents get two and some get none. Here is why a job definition, a scheduled run and an execution attempt must be three different records, and why leases don't erase duplicate effects.
Created 2026-09-16 · Updated 2026-10-15 · System Design
Follow Imran, a junior developer looking for his next job, through a LinkedIn-like network: how to model connections and follows, why search and feeds are projections, and how a hybrid fan-out keeps one famous post from flooding the system.
Created 2026-09-16 · Updated 2026-10-15 · System Design
An inter-school blitz final between Chennai and Delhi tests everything: why the server must be the referee, why a board picture isn't the full state, and how one game stays correct through double taps, a ticking clock and a server failover.
Created 2026-09-16 · Updated 2026-10-15 · System Design
9:00 on a Friday, first-day-first-show bookings open for a superstar's film, and 100,000 fans want 400 seats. How a ticketing system holds seats for a few minutes, keeps payment uncertainty away from inventory, and stays fair when the crowd arrives.
Created 2026-09-26 · Updated 2026-10-15 · System Design
A 17-year-old uploads a 2 GB cooking video over a shaky connection. By evening it has a million views, including his grandmother's, on a 2G phone. Follow it to see how a video platform accepts huge uploads, builds many playable versions, serves them from nearby caches, and counts views without a slow database.
Created 2026-09-26 · Updated 2026-10-15 · System Design
Friday, 9 pm: a hit series drops its new season and a family in Kochi presses play along with millions of others. How a streaming service keeps the cloud for decisions and puts the video bytes on cache appliances inside viewers' internet providers, stocked overnight before anyone asks.
Created 2026-09-26 · Updated 2026-10-15 · System Design
World Cup final night: a student on a cheap phone in Bihar and a family on a big TV in Pune press play at the toss, along with tens of millions of others. How a live-sports platform survives a crowd that arrives all at once: a stream for every screen, caching what can be cached, scaling in steps before the toss, and switching off extras so the video keeps playing.
Created 2026-09-26 · Updated 2026-10-15 · System Design
Mrs. Rao pays ₹1,000 for Diwali groceries, the network hiccups, and she taps Pay again. Follow her payment through idempotency keys, an honest 'unknown' state, webhooks, a double-entry ledger and daily reconciliation, then up to the enterprise questions: stakeholders, compliance, failover and how the design grows.
Created 2026-09-26 · Updated 2026-10-15 · System Design
Three zones don't help if they all depend on one shared database. Quorums, static stability, multi-region trade-offs, and why replication isn't a backup.
Created 2026-09-21 · Updated 2026-10-15 · System Design
Contracts, Protocol Buffers, HTTP/2 streams, deadlines, status codes, retries, load balancing, keepalive, and browsers: how gRPC works and where the sharp edges are.
Created 2026-09-26 · Updated 2026-10-15 · System Design
How Algomi's five web apps, single login, stateless API, shared library, market-hours worker, and hand-applied database migrations fit together.
Created 2026-09-26 · Updated 2026-10-15 · System Design
How a Telegram message becomes a broker order, why recommendations refuse to guess, and how one doorway keeps personal data away from third-party AI models.
Created 2026-09-26 · Updated 2026-10-15 · System Design
A study index for system design and AI system design interviews: every roadmap topic mapped to the post and section that teaches it, the HLD, LLD and AI interview frameworks, a ten-phase study order, and a readiness checklist with links.
Created 2026-09-29 · Updated 2026-10-02 · System Design
What a database does between your query and the disk: ACID, isolation levels and their anomalies, B-tree and LSM storage engines, write-ahead logs, index design, query plans, connection pools, and how to choose between SQL and NoSQL.
Created 2026-09-29 · Updated 2026-10-15 · System Design
When one database is not enough: replication topologies, choosing a shard key, hot partitions, global secondary indexes, and how to keep a business operation correct across services with 2PC, sagas, and the outbox pattern.
Created 2026-09-29 · Updated 2026-10-15 · System Design
What 'consistent' actually means: CAP and PACELC, the ladder from linearizable to eventual, quorum arithmetic, and how vector clocks and CRDTs let replicas agree without a shared clock.
Created 2026-09-29 · Updated 2026-10-15 · System Design
How machines that can crash and messages that can vanish still agree on one answer: the Two Generals problem, Byzantine faults, Raft in plain language, leader election, split brain, and why a lock needs a fencing token.
Created 2026-09-29 · Updated 2026-10-15 · System Design
Where to cache, which write pattern to use, how to evict, how to invalidate, and how to survive cache stampedes, penetration, and hot keys, with the trade-offs an interviewer expects you to name.
Created 2026-09-29 · Updated 2026-10-15 · System Design
Layer 4 versus layer 7 balancing, algorithms and health checks, DNS and anycast for global traffic, the TLS handshake, what changed between HTTP/1.1, 2 and 3, and where an API gateway fits.
Created 2026-09-29 · Updated 2026-10-15 · System Design
REST, GraphQL and gRPC choices, cursor pagination, idempotency keys, versioning, a rate limiter designed end to end (token bucket, sliding window, distributed), and RBAC, ABAC and JWT trade-offs.
Created 2026-09-29 · Updated 2026-10-15 · System Design
Follow one night in a busy sorting office to learn how Kafka stores and replicates messages, what acks and ISR really guarantee, delivery semantics, rebalancing, lag, poison pills, dead-letter queues, and retries with backoff and jitter.
Created 2026-09-29 · Updated 2026-10-15 · System Design
OLTP versus OLAP, batch versus stream, lambda and kappa, windowing and late data, change data capture, data lakes and warehouses, and how to keep a pipeline correct when events repeat or arrive late.
Created 2026-09-29 · Updated 2026-10-15 · System Design
Inverted indexes and ranking, a typeahead service built on tries, a polite web crawler, time-series storage with downsampling, and exactly-once-ish ad-click aggregation.
Created 2026-09-29 · Updated 2026-10-15 · System Design
How to answer 'what is near me?' at scale: geohash, quadtrees, S2 and H3 cells, a proximity service, and a ride-hailing dispatcher that ingests millions of moving driver locations.
Created 2026-09-29 · Updated 2026-10-15 · System Design
How two people type in the same document at once without losing each other's words: operational transformation, CRDTs, the server architecture around them, presence, offline editing, and version history.
Created 2026-09-29 · Updated 2026-10-15 · System Design
How an exchange matches buyers and sellers deterministically: the limit order book, price-time priority, a single-threaded sequenced matching engine, market data fan-out, and the broker's order gateway and pre-trade risk checks.
Created 2026-09-29 · Updated 2026-10-15 · System Design
Designing a WhatsApp-style chat (connections, message flow, ordering, delivery receipts, offline sync, group fan-out) and a notification platform (channels, templates, preferences, retries, deduplication).
Created 2026-09-29 · Updated 2026-10-15 · System Design
Fan-out on write versus on read, the hybrid that tames celebrity accounts, storing the follow graph, feed ranking, counters, and pagination for a timeline that must feel instant.
Created 2026-09-29 · Updated 2026-10-15 · System Design
Three classic designs worked end to end: a URL shortener (ID generation, redirects, analytics), a Dynamo-style distributed key-value store, and a Dropbox-style file sync service with chunking and deduplication.
Created 2026-09-29 · Updated 2026-10-15 · System Design
The numbers every engineer should know, a repeatable method for QPS, storage, bandwidth, and server counts, worked examples, and how to check the estimate with load tests and percentile latency.
Created 2026-09-29 · Updated 2026-10-15 · System Design
What separates a design on paper from a system you can run: metrics, logs and traces, SLOs, zero-trust security, safe deployment strategies, Kubernetes essentials, multi-region cloud choices, and cost control.
Created 2026-09-29 · Updated 2026-10-15 · System Design
The object-oriented vocabulary and the handful of design patterns that machine-coding rounds actually use, explained like you are five through one tea shop, then shown in short runnable Java.
Created 2026-09-29 · Updated 2026-10-15 · System Design
One busy restaurant kitchen explains race conditions, locks, deadlock, producer-consumer, thread pools, and thread-safe class design, with runnable Java 17 code and the Java-specific facts (memory model, volatile, ReentrantLock, ConcurrentHashMap, virtual threads) interviewers probe.
Created 2026-09-29 · Updated 2026-10-15 · System Design
Four classic machine-coding rounds solved in modern Java through one neighbourhood shopping mall: the basement parking lot, the front-shelf LRU cache, the food-court token bucket, and the snack vending machine, each with design reasoning and follow-ups.
Created 2026-09-29 · Updated 2026-10-15 · System Design
One weekend hotel trip, told in modern Java: expense sharing with debt simplification, a lift scheduler, tic-tac-toe with O(1) win checks, a pluggable trip diary (logger), plus class sketches for seat booking, notifications, a library, cab dispatch, food delivery, and chess.
Created 2026-09-29 · Updated 2026-10-15 · System Design
The end-to-end shape of a production ML system (framing, data, features, training, serving, monitoring) and the two-stage recommender pattern with candidate retrieval, ranking, metrics like NDCG, and cold start.
Created 2026-09-29 · Updated 2026-10-15 · System Design
What log compaction actually does inside a Kafka broker: dirty and clean sections, the cleaner's offset map, tombstones and delete.retention.ms, the settings that decide when a record really disappears, and the three interview questions that trip people up.
Created 2026-10-15 · Updated 2026-10-15 · System Design
A health check that passes while nobody can reserve a book: how to monitor API outcomes with synthetic journeys and real-request telemetry, keep test traffic safe, turn failures into actionable alerts, and defend the cost, privacy and recovery decisions in an interview.
Created 2026-10-17 · Updated 2026-10-17 · System Design