02Event store and CQRS
PostgreSQL Event Sourcing
A ride-hailing application stores changes as events in PostgreSQL and uses CQRS to separate updates from queries.

How it works
- The application models the lifecycle of a ride order, from placement and acceptance through completion or cancellation.
- PostgreSQL acts as the event store. State can be reconstructed by replaying stored events, with snapshots to shorten replay.
- The documentation covers optimistic concurrency and query-side projections alongside the event-store schema.
Technology stack
JavaSpring BootPostgreSQLCQRS
Related projects
03/06Data & caching
Redis Caching with Spring Boot
Service-layer caching
Redis reduces repeated database reads, and writes invalidate affected cache entries.
04/06Event-driven
Saga Orchestration
Hotel reservation workflow
A reservation service coordinates room availability and payment across services, with a compensation path for rejected payments.
Building something similar?

