This project utilizes Kafka hosted on CloudKarafka to implement a cloud-based Kafka connection system. It includes a producer capable of sending messages directly to the cloud and a consumer capable of consuming messages in a microservice.
To get started with this project, follow these steps:
-
Clone this repository to your local machine.
-
Create an account on CloudKarafka.
-
Create a new instance with the free "Developer Duck" plan on Amazon Web Services.
-
Define the following environment variables as described in
application.yml
:CLOUDKARAFKA_BROKERS
: The bootstrap server(s) provided by CloudKarafka.CLOUDKARAFKA_USERNAME
: Your CloudKarafka username.CLOUDKARAFKA_PASSWORD
: Your CloudKarafka password.
-
Run the project and test the connection to CloudKarafka.
Once the environment is set up and the project is running, you can start producing and consuming messages using Kafka in the cloud.