Skip to content

csankhala/OrderService

Repository files navigation

This service repo is part of below project: https://github.com/csankhala/ecommerce-micronaut-kafka

Requirement (Generated by ChatGPT)

As a customer using an e-commerce website, I want my orders to be processed automatically and efficiently, so that I can receive my products quickly and with minimal hassle.

Acceptance Criteria:

  • When I add products to my shopping cart and proceed to checkout, the order service should subscribe to the "cart-checkout" Kafka topic.

  • The order service should process incoming messages from the "cart-checkout" topic to create a new order.

  • The order service should use the product catalog service to retrieve product information for each item in the order.

  • The order service should use the payment service to process payment for the order.

  • If payment is successful, the order service should mark the order as "paid" and send a message to the "order-created" Kafka topic.

  • If payment fails, the order service should send a message to the "payment-failed" Kafka topic and notify the customer of the payment failure.

Micronaut 3.9.1 Documentation


Feature openapi documentation

Feature kafka documentation

Feature swagger-ui documentation

Feature test-resources documentation

Feature http-client documentation

Releases

No releases published

Packages

No packages published

Languages