, we should analysis and design our custom event bus. Basically EventBridge has 3 main core concepts that we need to create;
Custom event bus — CheckoutBasketEventBus
Event Rule with event pattern — we will create CheckoutBasketRule
Targets — we will create SQS order queue and notification ms target for our custom event bus
With this plan, Basket microservice invoke from API gateway with post request, Basket microservice publish checkout basket event to the custom event bus CheckoutBasketEventBus process Event Rule with Event Patterns and publish event to the Target systems.
Create Rule for Custom Event Bus
Event pattern: