Contains 3 services
- Books
- Cart
- Orders
- List available books
- Get a book by book_id
- Get top 10 best selling books
- List items in cart
- CRUD operations on cart
- List placed orders
- Get order by order_id
- Checkout
- NATS request-reply pattern is used for Checkout.
- Checkout will create a new order and publish an event order.placed
- Cart service will subscribe to this event and remove cart items
- Redis Sorted-Sets is used to maintain best sellers
- Use NATS Jetstream to update the best sellers