A digital product ordering backend service written in java and goLang with microservice architecture and a well-thought-out system design implementation. Java services are spring boot while golang are gin
- Auth services(GoLang)
- Gateway service(Java)
- User service(Java)
- Product service(Java)
- Order service(Java)
- Payment service(GoLang)
- Notification service(GoLang)
- Discovery service(Java)
- Postgres
- Mongo
User service uses postgres while notification,product,order and payment services all uses mongodb
- Redis
Used in User and Product services
- RabbitMq
Implemented in product,order,payment and notification services
- Gateway service: Api Gateway redirects all request to appropriate endpoint both open and authenticated endpoints.
- User service: User create account on user service. postgresql was used.
- Auth service: Logs in on auth service using username and password gets jwt token. with direct db call to users database for latency.
- Product service: server the client on products details mongodb was used.
- Order service: post order saves and get posted out through RabbitMQ used mongodb receives payment and update order status from same RabbitMQ.
- Payment service: Receives from RabbitMQ order and process payment sends queue for orders saves with mongodb
- Notification service: Receives from RabbitMQ on Payment and Order uses mongodb
- Discovery service: Uses eureka for server discovery
