ShopSphere splits catalog, cart, orders, and payments into independent services behind an API gateway, so each piece can scale and deploy on its own schedule.
Authentication uses short-lived JWTs with refresh rotation, and the entire stack ships as a Docker Compose bundle for easy self-hosting.
Key contributions
- Designed catalog, cart, order, and payment services with clear ownership boundaries.
- Implemented JWT auth with refresh-token rotation.
- Added Redis-backed caching for catalog reads.
- Wrote a Docker Compose setup for one-command local and demo deployment.
The challenge
Keeping the cart consistent when a product's price or stock changed mid-checkout was easy to get wrong.
The solution
Snapshot pricing at add-to-cart time and re-validate stock and price atomically at checkout, rejecting with a clear diff instead of silently overwriting the customer's cart.