Skip to content
Prashant Maurya edited this page Jun 28, 2026 · 1 revision

Welcome to the spring-boot-production-patterns wiki!

Spring Boot Production Patterns - Wiki

Welcome to the wiki! This guide helps you understand and contribute to this repository.

📚 Table of Contents


What is this repo?

A collection of production-grade Spring Boot patterns used in real-world microservices. Each pattern solves a specific problem that developers face in production systems.


How to run a pattern

  1. Clone the repo
  2. Go to any pattern folder
  3. Run:
cd <pattern-folder>
./mvnw spring-boot:run

Pattern Explanations

01 - Circuit Breaker

Stops cascading failures. When a service fails repeatedly, circuit "opens" and stops sending requests to it.

02 - Rate Limiting

Controls how many requests a client can make in a time window. Excess requests get 429 error.

03 - Retry Logic

Automatically retries failed operations with a delay between attempts.

04 - Idempotency

Prevents duplicate processing. Same request sent twice = same response, no double execution.

05 - Caching

Stores frequent responses in memory. First call hits DB, subsequent calls return from cache instantly.

06 - Bulkhead

Isolates services using separate thread pools. One slow service cannot affect others.


How to contribute

Please read CONTRIBUTING.md before contributing.