Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A dockerized example on how to use Apache Kafka message broker with Ruby Karafka gem to publish/subscribe events between systems.

License

NotificationsYou must be signed in to change notification settings

ayyoubjadoo/Karafka-Example

Repository files navigation

A dockerized example on how to use Apache Kafka message broker with Ruby Karafka gem to publish/subscribe events between systems.

Usage

  1. Start the docker container by executing the below in the terminal (you need to install docker if not installed)

docker-compose up --build

Now Apache Kafka and Zookeeper are up and running, also our example-app is running Karafka server.

  1. Attach shell to the containerexample-app_app01 and send some messages by executing the following:

rake waterdrop:send

This will execute arake task in the example code which publish some messages usingwaterdrop gem.

  1. Now you should see logs indicates that the karafka server consumed the messages and a ping pong messaging is working.

Please note that the example used here is the same official example provided by Karafka, I made this repo to make it easy to get things (kafka, zookeeper, karafka server) up and running quickly so anybody can play with the example smoothly to get a simple POC of what we can acieve with kafka.

Also you can implement your local message producers/consumers and use the kafka instance running in this example onkafka://localhost:9092

About

A dockerized example on how to use Apache Kafka message broker with Ruby Karafka gem to publish/subscribe events between systems.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp