A Spring Boot example application showing the use of Spring Cloud Stream & the Kafka bindings.
The ultimate feedback solution! This application lets the customers leave negative or positive feedback for the owner of the service who can then query the feedbacks left.
Leaves a positive feedback.
Leaves a negative feedback.
Retrieves the feedbacks left by customers. Example response:
{
"positive": 231415,
"negative": 2
}
A simple CI/CD pipeline is set up for this project. Whenever a commit is made to the master
branch, the service gets automatically built
and then promoted onto GKE by CircleCI.
- Clone the repository
- Run the tests:
./mvnw clean verify
- Run the application:
./mvnw spring-boot:run -Dspring.profiles.active={{profile}}
Available profiles:
local
: Uses an in-process channel to transfer messages from the producer to the consumer, does not have any external dependencieskafka
: Uses Spring Cloud Stream & Kafka to transfer messages from the producer to the consumer. This profiles requires a Kafka broker running.