Java, Spring Boot, Spring Security, PostgreSQL, Redis, Apache Kafka, JWT, Docker Compose, Maven
A lightweight Order Management System built with Spring Boot that demonstrates secure e-commerce workflows using JWT authentication, Redis caching, and event-driven order processing with Apache Kafka.
sImportant Functionalities
JWT Authentication — Stateless authentication secured with Spring Security and a custom JWT filter that validates Bearer tokens and protects all inventory and order endpoints.
Redis Cache-Aside Strategy — Product lookups are cached in Redis with a 10-minute TTL, reducing database load while delivering significantly faster inventory responses.
Asynchronous Order Processing — Orders publish an OrderCreatedEvent to Apache Kafka only after a successful database transaction, ensuring reliable event delivery.
Event-Driven Consumer — A dedicated Kafka consumer automatically logs ordered products into a CSV file, while the architecture allows additional consumers for emails, analytics, or notifications.
Production-Oriented Backend Patterns — Includes automatic database seeding, centralized global exception handling with consistent API responses, and Docker Compose for local infrastructure orchestration.
Back to all projects