Latipe-EC / order-service-v2

New version of order services, integrate gRPC framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Latipe Order Service (Version 2)

Tech :

  • Go (1.20)
  • Fiber v2
  • Gorm (MySQL v8)
  • Redis
  • RabbitMQ
  • Go-Resty
  • gRPC
  • FiberPrometheus

Handling the purchase process in e-commerce using microservices architecture. The order service includes several function:

  • CRUD orders data
  • Statisticize commission, profit, order count,...

The order creation process involves two phases:

  • Phase 1: Processes HTTP POST requests, retrieves data by making gRPC requests to other services, and sends messages (order_status:pending) into transaction service.
  • Phase 2: Receives reply messages from transaction service and update order status (failed or success) into the database.

Server endpoints:


Development by Tran Tien Dat

About

New version of order services, integrate gRPC framework


Languages

Language:Go 99.4%Language:Makefile 0.5%Language:Dockerfile 0.1%