Skip to content

This project contains two microservices projects wich I used to implement Asynchronous communication between them, using Kafka.

Notifications You must be signed in to change notification settings

charlybutar21/microservice-kafka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asynchronous Communication between Microservices with Kafka

This mono repo contains two microservices projects wich I used to implement Asynchronous communication between them, using Kafka.

img.png

Prerequisites

  • Docker and Docker Compose installed on your machine.

Setup Instructions

  1. Clone the Repository

    git clone https://github.com/charlybutar21/microservice-kafka.git
    
  2. Start RabbitMQ with Docker

    cd microservice-kafka
    docker-compose up
    
  3. Run Microservices

    Run producer-service and consumer-service.

  4. Send a Request

     http://localhost:8080/order
     Content-Type: application/json
    
     {
         "item": "Mie Goreng",
         "amount": 30000
     }
    
  5. Verify the Data

    Open http://localhost:8081/h2-console,

    url: jdbc:h2:mem:testdb,

    username: sa

    password: password

About

This project contains two microservices projects wich I used to implement Asynchronous communication between them, using Kafka.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages