riccardomerolla / zio-kafka-showcase

Example project that demonstrates how to build Kafka based microservices with Scala and ZIO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zio-kafka-showcase

Example project that demonstrates how to build Kafka based microservices with Scala and ZIO.

System is build as multi-module sbt project.

Modules:

  1. Kafka module is used to provide an in-memory instance of Kafka, so before starting other services, make sure that Kafka is running.
  2. Protocol module contains messages and its JSON codecs that are used to communicate between microservices.
  3. Producer module is used to simulate incoming messages that are sent to Kafka.
  4. Processor module is responsible for consuming, enriching, and producing those enriched messages to the new Kafka topic.

How to start

  1. Start kafka
  2. Start producer
  3. Start processor

System Architecture

Alt text

About

Example project that demonstrates how to build Kafka based microservices with Scala and ZIO


Languages

Language:Scala 100.0%