Skip to content

Broadcast Kafka messages using web sockets, ZIO playground

Notifications You must be signed in to change notification settings

kubinio123/k-tail

Repository files navigation

k-tail

The app is a web socket server for broadcasting kafka messages for some preconfigured topics. It's built for the educational purpose of a blog post series about programming with ZIO library. I encourage you to read the posts first.

The code uses ZIO version 2.

  • Part one, covers basic of ZIO effects, streams and layers - link
  • Part two, covers basics of concurrency and web sockets handling - link
  • Part three, covers testing - link

Overview

k-tail-overview

Run it

I assume sbt is installed on your OS.

  1. start Kafka & Zookeeper using provided docker compose file, docker compose up
  2. Run the dummy producer which will send random messages to test Kafka topic, sbt "project producer" "run"
  3. Run the server with sbt "project server" "run"

About

Broadcast Kafka messages using web sockets, ZIO playground

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages