Spring PetClinic Microservices Architecture
Focus: API Gateway + Eureka + Config Server + Domain Services + Observability. Key areas: Spring MVC / Thymeleaf (optional UI), React (optional), HTTP/JSON.
Use this as a block diagram of the system when explaining architecture.
Preview
Prompt
Microservices architecture diagram based on the Spring PetClinic reference implementation. The design should feature an API Gateway acting as the entry point, connected to a Service Discovery Server (Eureka) and a Centralized Config Server backed by Git. Break down the backend into distinct domain services: Customers Service, Vets Service, and Visits Service, each owning its separate database schema. Include the Tracing infrastructure (Zipkin/Sleuth) and Circuit Breaker Dashboard (Hystrix/Resilience4j) for observability.
Highlights
- Layer details · Client & Edge Layer: Modules include Web UI / Client Apps, API Gateway (Entry Point).
- Layer details · Platform Services Layer: Modules include Service Discovery Server, Centralized Config Server, Config Repository (Git Backing Store).
- Module responsibilities · Client & Edge Layer / Web UI / Client Apps: Render PetClinic UI workflows; Call backend APIs through a single entry point; Display aggregated data from multiple services
Overview
Spring PetClinic Microservices Architecture (API Gateway + Eureka + Config Server + Domain Services + Observability) has 5 layers: Client & Edge Layer, Platform Services Layer, Domain Microservices Layer, Data Layer (Schema per Service), Observability & Resilience Layer.