How to deploy Nest.js microservices using Kubernetes
- User Service: Responsible for handling user registration, login, and personal information management.
- Product Service: Responsible for handling CRUD operations for products and inventory management.
- Order Service: Responsible for handling order creation, payment, shipping, and refund processes.
- Notify payment microservice:
- if success:
- Remove the relative items in shopping cart
- Reduce storage
- Send notification
- if failure:
- Cart Service: Responsible for handling the creation of shopping carts, adding products, and removing products.
- Recommendation Service: Responsible for recommending products based on user's purchase history and preferences.
- Search Service: Responsible for handling product search functionality.
- Payment Service: Responsible for handling order payments, integrating with third-party payment platforms like Alipay, WeChat Pay, etc.
- Notification Service: Responsible for sending information about order status changes, event notifications, and more.
RABBITMQ_URI=<YOUR_RABBITMQ_URI>
ETCD_HOSTS=<YOUR_ETCD_HOSTS>
ETCD_USERNAME=<YOUR_ETCD_USERNAME>
ETCD_PASSWORD=<YOUR_ETCD_PASSWORD>
REDIS_URL=<YOUR_REDIS_URL>
ELASTIC_SEARCH_NODE=<YOUR_ELASTIC_SEARCH_NODE>
ELASTIC_SEARCH_USERNAME=<YOUR_ELASTIC_SEARCH_USERNAME>
ELASTIC_SEARCH_PASSWORD=<YOUR_ELASTIC_SEARCH_PASSWORD>