Kafka
Topics found in the repository
| Topic | Producer | Consumer |
|---|---|---|
order-created | order-service | notification-service, analytics-service |
payment-success | payment-service | order-service |
payment-failed | payment-service | analytics-service |
Event schemas
order-created
orderIduserIdemailtotalAmountitems[]firstNamephoneNumberstatus
payment-success
paymentIdcheckoutIduserIdtransactionIdamountitems[]emailfirstNamephoneNumber
payment-failed
paymentIdcheckoutIduserIdtransactionIdamount
Checkout/event flow
Retry / delivery notes
- Producers use Spring Kafka
KafkaTemplate payment-servicewaits on.get()for publish success/failureorder-servicepublishes after transaction commit usingTransactionSynchronizationManageranalytics-serviceadds an application-level deduplication table viaprocessed_events