01
Stage 1 – Customer Registration and Login
Process
Customer creates an account or logs into the e-commerce application.
Tools
Keycloak
Implementation
The customer provides login credentials. Keycloak authenticates the customer and provides an access token after successful authentication. The same authentication is used for accessing other application functions.
02
Stage 2 – Product Browsing
Process
Customer searches and browses available products.
Tools
Kong Gateway
PostgreSQL
Implementation
The authenticated customer sends a product request through Kong Gateway. The application retrieves product information such as product name, price, category, and availability from PostgreSQL and displays it to the customer.
03
Stage 3 – Shopping Cart Management
Process
Customer adds products to the shopping cart and updates quantities.
Tools
Kong Gateway
Redis
Implementation
The authenticated customer adds selected products to the cart. Redis stores the active cart information so that cart details can be retrieved and updated quickly.
04
Stage 4 – Order Placement
Process
Customer confirms the cart and places an order.
Tools
Kong Gateway
PostgreSQL
Implementation
The application retrieves the cart information and creates an order containing customer ID, products, quantity, price, and order status. The order information is stored in PostgreSQL.
05
Stage 5 – Payment Processing
Process
Customer makes payment for the placed order.
Tools
Kong Gateway
Implementation
The authenticated customer submits the payment request. The application sends the request to the payment service and receives the payment result. The payment and order status are updated based on the result.
06
Stage 6 – Order Confirmation
Process
The application confirms the order after successful payment.
Tools
PostgreSQL
Implementation
The application updates the order status in PostgreSQL to indicate that the payment was successful and the order has been confirmed. The confirmation is then displayed to the customer.
07
Stage 7 – Order Tracking
Process
Customer checks the current status of the order.
Tools
Kong Gateway
PostgreSQL
Implementation
The authenticated customer requests the order status. The application retrieves the latest order information from PostgreSQL and displays the current status.