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

Kafka event client tool

License

NotificationsYou must be signed in to change notification settings

ramadani/starboost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka Event Client Tool

  • Publish message via Rest API
  • Configurable consume message

Installation

  1. Download the binary file onrelease page
  2. Create yaml config file based on example below

Example Config

# config.yamladdress:localhost:8123debug:falsekafka:addresses:    -localhost:9092consumer:enabled:truegroupId:starboosttopics:    -paybill    -tap_snapoutput:stdout:truefile:starboost.log

Usage

Run starboost

$ ./starboost --config=config.yaml

Publish

Publish message via endpointPOST /publish. You can use cURL or Rest Client.

Example 1

curl --location --request POST'localhost:8123/publish' \--header'Content-Type: application/json' \--data-raw'{    "topic": "paybill",    "message": "some message"}'

Example 2

curl --location --request POST'localhost:8123/publish' \--header'Content-Type: application/json' \--data-raw'{    "topic": "paybill",    "message": {        "foo": "bar"    }}'

Consume

You can see the incoming messages on your terminal or log file based on consumer output config.

Example Config

consumer:...output:stdout:truefile:starboost.log

TODO

  • Filterable on consuming messages
  • Dockerize

Contributing

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. SeeLICENSE for more information.

About

Kafka event client tool

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp