Guided Lab Brief

Microservices Architecture Pattern

Decompose a monolith into microservices with service discovery, circuit breakers, and independent scaling.

Overview

Decompose a monolith into microservices with service discovery, circuit breakers, and independent scaling.

Microservices split your application into small, independently deployable services.

You will build 7 architecture steps that model production dependencies.

You will run 1 failure experiment to observe bottlenecks and recovery behavior.

Success target: Services independently scaled, circuit breaker prevents cascading failures, service registry enables discovery.

Learning Objectives

  • Understand microservice decomposition and service boundaries
  • Know how service discovery enables dynamic communication
  • Learned about circuit breakers for fault tolerance
  • Experienced independent scaling of individual services

Experiments

  1. Set circuit breaker failureThreshold to 100 to effectively disable it

Failure Modes to Trigger

  • Trigger: Set circuit breaker failureThreshold to 100 to effectively disable it

    Observe: 100 failures before tripping means the circuit breaker is essentially disabled. If the downstream service fails, 100 requests timeout (each taking 30+ seconds) before protection kicks in. Your thread pool exhausts, and the calling service fails too.