- Run docker-compose.yml to run db and kafka broker
- Run payment service with
devactive profile
To access Kafka UI, open the browser and navigate to http://localhost:8088.
To publish a test message to Kafka topic via Kafka UI, follow these steps:
-
Open Kafka UI in your browser at
http://localhost:8088. -
Select the Kafka cluster you want to interact with.
-
Select
Topicsfrom the navigation panel on the left. -
Select the given topic you want to publish a message to.
-
Click on the
Produce Messagebutton. -
In the
Keyfield, enter the key identifier for your message -
In the
Valuefield, enter the message content in JSON format. Example" -
In payload section add for payment-processed-failed or payment-processed-succeeded. These events are produced by this service and should be received by order-service (also with
devprofile active)
{
"orderId": "550e8400-e29b-41d4-a716-446655440001",
"paymentId": "b526bf0b-da2e-40ba-8062-22d7132e4d95",
"processedAt": "2025-10-25T15:06:06"
}