Microservices Architecture Patterns
Core patterns for building resilient distributed systems: circuit breaker, saga, outbox, strangler fig, bounded context.
- Circuit breaker /ˈsɜːkɪt ˈbreɪkər/
A resilience pattern that monitors failures to a dependency and, after a threshold is reached, opens the circuit to stop sending requests — preventing cascade failures. States: closed (normal), open (failing), half-open (testing recovery).
"The circuit breaker to our payment provider opened after 10 consecutive timeouts — instead of piling up 5,000 blocked threads waiting for a dead service, we returned graceful errors immediately while the provider recovered."
- Saga pattern /ˈsɑːɡə ˈpætən/
A pattern for managing distributed transactions across microservices using a sequence of local transactions with compensating transactions (rollbacks) for failure cases — avoiding the need for distributed ACID transactions.
"Order placement uses a saga: place order (OrderService) → reserve inventory (InventoryService) → charge payment (PaymentService). If payment fails, compensating transactions cancel the inventory reservation and order."
- Outbox pattern /ˈaʊtbɒks ˈpætən/
A pattern for reliably publishing events alongside database changes by writing the event to an outbox table in the same database transaction, then having a separate process publish it to the message broker — guaranteeing exactly-once event publishing.
"The outbox pattern solved our "payment processed but event not published" race condition: the charge and the PaymentProcessed event are written atomically to Postgres, and a Debezium CDC connector publishes the event from the outbox table."
- Strangler fig pattern /ˈstræŋɡlər fɪɡ ˈpætən/
A migration pattern for incrementally replacing a monolith: new functionality is built in new services while a facade routes traffic — over time the monolith is "strangled" as functionality is migrated away.
"We used the strangler fig to migrate from the Rails monolith: a Kong API gateway routes /api/orders to the new Order microservice while all other paths still hit the monolith — no big bang rewrite required."
- Bounded context /ˈbaʊndɪd ˈkɒntekst/
A Domain-Driven Design pattern defining the boundary within which a particular domain model applies — inside the boundary, all terms have precise meanings; across boundaries, terms may differ or require translation.
"In our system, 'Customer' means different things: in the CRM bounded context it includes sales history, in the billing context it means payment method and plan. Clear bounded contexts prevent model pollution across services."
- Idempotent consumer /aɪˈdempətənt kənˈsjuːmər/
A message consumer that can safely process the same message multiple times without causing duplicate side effects — essential in distributed systems where at-least-once message delivery guarantees duplicates.
"Our email sending consumer is idempotent: it checks if a notification_id has already been processed before sending — duplicate Kafka messages during broker failover don't cause double emails."
- Anti-corruption layer (ACL) /ˈænti kəˈrʌpʃən ˈleɪər/
A translation layer at a bounded context boundary that converts between the models of two systems — preventing the domain model of one context from being "corrupted" by the model of an external system.
"Our ACL translates the legacy ERP's order format into our domain model before any bounded context consumes it — changes to the ERP's API only require updating the ACL, not every downstream service."
- Compensating transaction /ˈkɒmpenseɪtɪŋ trænˈzækʃən/
A business operation that semantically reverses a previously completed transaction in a saga — it cannot technically undo a committed transaction but achieves the same business outcome.
"If the InventoryService reservation succeeds but PaymentService fails, the compensating transaction sends a ReleaseInventory command — restoring stock levels without being a database-level rollback."
Quick Quiz — Microservices Architecture Patterns
Test yourself on these 8 terms. You'll answer 8 multiple-choice questions — each shows a term, you pick the correct definition.
What does this term mean?
Quiz complete!
Frequently Asked Questions
How many terms are in the Microservices Architecture Patterns vocabulary set?
The Microservices Architecture Patterns set has 8 terms, each with a definition, pronunciation, and an example sentence showing real-world usage.
What level is the Microservices Architecture Patterns vocabulary set?
This set is labelled Advanced. If you find it too challenging, browse the full vocabulary list to find a set closer to your current level.
Is this vocabulary set free to study?
Yes. Every vocabulary set on CoderSlingo, including this one, is completely free — no account, sign-up, or payment required.
What study modes are available for this set?
Three modes: a searchable Study List showing all terms with definitions and examples, Flashcards for active recall practice, and a Quiz that tests you with multiple-choice questions.
Is my flashcard progress saved?
Yes — your "learned" status for each flashcard is saved in your browser's local storage, so it persists between visits on the same device.
Is there a matching interactive exercise for this set?
Yes — click "Practice exercises" above to test yourself on these exact terms in a scored, multiple-choice exercise.
Can I search within this vocabulary set?
Yes — use the search box above the term list to filter instantly by word, definition, or example as you type.
Is the Microservices Architecture Patterns set linked to any career role paths?
Vocabulary sets that map to specific IT roles (like Frontend Developer or DevOps Engineer) show a "Part of" list above linking to those role paths — check the header for this set.
How is a quiz question scored?
Each quiz question shows one term and four possible definitions; you pick the correct one. At the end you get a percentage score and a summary message based on how many you got right.
Where can I find more vocabulary sets like this one?
Browse the full Vocabulary hub for all study sets, organised by topic — from Agile and Git to Cloud Infrastructure, Security, and AI/ML.