Skip to content

This is a demonstration project about a Java microservice implemented with spring boot, that consumes rock band names from a kafka topic, and stores the sum of likes of each rock band in a mongoDb database. All the interactions with the mongoDb database are wrapped with a circuit breaker pattern implemented with Resilience4j library.

Notifications You must be signed in to change notification settings

mpescarmona/demo-ms-cb-kafka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microservice with Kafka and Resilience4j using Spring Boot 2 demo

This demo shows how a Spring Boot 2 microservice consumes from a Kafka topic and uses the fault tolerance library Resilience4j to isolate from fails in mongoDb database.

See Resilience4j User Guide for more details.

Getting Started

To run the complete Demo application, just run the 01-start.sh bash script.

./01-start.sh

This script will:

  • Start the docker machine on your local machine,
  • Build the application image
  • Start the docker images
  • Display the application logs

To stop the Demo application, just run:

./02-stop.sh

Monitoring with Prometheus and Grafana

The provided docker-compose file will deploy the following things in your local machine:

Requirements

Docker and Docker Compose installed.

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:

Additional Links

These additional references should also help you:

About

This is a demonstration project about a Java microservice implemented with spring boot, that consumes rock band names from a kafka topic, and stores the sum of likes of each rock band in a mongoDb database. All the interactions with the mongoDb database are wrapped with a circuit breaker pattern implemented with Resilience4j library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published