Quick recap · Cheat sheet ☷ Flashcards
Quick recap

All 51 questions, one line each

Filter to one category, collapse what you already know, and print the rest. Click any question to open the full explanation.


The 14 things to be sure of

If you remember nothing else, remember these.

1What defines microservices: independently deployable + owns its data. Without both it's a distributed monolith.
2They solve an organisational problem. Start with a modular monolith; split when there's a proven reason.
3Every call is now a network call — latency, partial failure and no ACID across services come with it.
4Sync = needs an answer now · Async = can happen later. A chain of synchronous hops multiplies failure.
5A broker buys you durability, buffering, fan-out and retry — and eventual consistency.
6DLQ = messages that failed N times. Alert on depth, inspect, fix, replay — never purge.
7Delivery is at-least-once. Exactly-once delivery doesn't exist; exactly-once effect is your job.
8Retry (blip) + backoff + jitter, inside a circuit breaker (outage). Retries alone amplify an outage.
9Timeout on every external call, shorter than the caller's. A slow dependency is worse than a dead one.
10A timeout is ambiguous. It does not mean the work didn't happen.
11Idempotency key: generated by the client, reused on every retry, stored with the result in durable shared storage — never in memory.
12No 2PC. Saga = local transactions + compensating actions. Reserve stock before charging.
13Transactional Outbox: write the event in the same transaction as the data; a publisher sends it afterwards.
14Debugging is correlation id + distributed tracing — and the id must survive the queue hop.

Words that signal seniority

at-least-once · exactly-once effect · idempotency key · compensating action · transactional outbox · eventual consistency · backpressure · thundering herd · bulkhead · distributed monolith · temporal coupling · choreography vs orchestration

How to answer, whatever they ask

What it is → why it matters → what you'd do in practice, then tie it to something you've actually built. If you don't know, say so and say how you'd find out.