Microservices in Spring Boot
A practice project built along a video course to try out Kafka, gRPC and an API gateway: five services behind a gateway that lets a request through only after the JWT is checked.
A practice project built along a course, not a production system: billing returns a fixed answer and analytics only logs events for now.
- Role
- Built along a course, solo
- Period
- 11/2025 – 01/2026
- Stack
-
- PostgreSQL
- REST API (JWT)
- Java
- Docker
In short
- 5 services behind one gateway
- REST, gRPC and Kafka in one flow
- The auth service checks the token, not every service on its own
The problem
My own projects are Laravel monoliths. I wanted to try the other end: how services talk over REST, gRPC and Kafka, and how login works when there are several services.
What I built
- An API gateway that checks the token with the auth service before the patient service
- An auth service with JWT and its own PostgreSQL database
- A patient service: REST, validation, OpenAPI; a new patient calls billing over gRPC and publishes an event to Kafka
- Docker images without root and docker-compose with Kafka and two databases
Result
About 1,000 lines of Java in five services. The gateway returns 401 when the auth service does not answer, so an outage lets nobody in.
What I would do next
Real billing with its own database, and analytics that actually computes something from the events.
Looking for a backend developer or a similar app?
Send me a few lines. I reply within 2 working days.