What problem does it solve?
Provides concise, production-oriented Spring Boot architecture and API patterns to avoid common design mistakes, reduce boilerplate, and improve reliability, observability, and maintainability of backend services.
Core Features & Use Cases
- REST API Structure: Guidance for controller → service → repository layering, pagination, and request validation to keep controllers thin.
- Data Access & Transactions: Patterns for Spring Data JPA repositories, transactional service methods, DTO mapping, and repository queries.
- Caching & Async Processing: Recommendations for cache configuration, cache eviction, and @Async background processing.
- Error Handling & Security: Centralized exception handling, validation error formatting, rate limiting, and trusted-proxy guidance.
- Observability & Production Defaults: Logging best practices, metrics/tracing integration, HikariCP tuning, and deployment profile practices.
- Use Case: Refactor a monolithic REST endpoint for a marketplace into well-tested, observable services with caching and resilient external calls.
Quick Start
Use the springboot-patterns skill to review my Spring Boot project and produce concrete recommendations to refactor controllers, services, repositories, and configuration for production readiness.