https://github.com/aksbuzz/bookstore
https://github.com/aksbuzz/bookstore
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/aksbuzz/bookstore
- Owner: aksbuzz
- Created: 2024-03-30T07:12:17.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-02T17:09:51.000Z (about 2 years ago)
- Last Synced: 2025-12-31T22:45:18.487Z (5 months ago)
- Language: Go
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
Contains 3 services
1. Books
2. Cart
3. Orders
## Books
- List available books
- Get a book by book_id
- Get top 10 best selling books
## Cart
- List items in cart
- CRUD operations on cart
## Orders
- List placed orders
- Get order by order_id
- Checkout
### NATS
- 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
- Redis Sorted-Sets is used to maintain best sellers
### TODO
- Use NATS Jetstream to update the best sellers