Skip to content

BenMeehan/goscribe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoScribe

GoScribe is a minimal pub-sub broker written in pure golang.

Usage

  1. "sub topic" - subscribe to a topic
  2. "unsub topic" - unsubscribe from a topic
  3. "pub topic" - publish to a topic
  4. "ls" - list all topics
  5. "quit" - disconnect from the broker

How to run

  1. clone this repo git clone https://github.com/BenMeehan/goscribe.git
  2. cd into the cloned directory
  3. run go build
  4. run the resultant binary ./goscribe [-h HOST] [-p PORT]

Note : HOST and PORT are optional. Defaults to 0.0.0.0 and 8090

Demo using telnet

demo.gif

Gotcha's

GoScribe is a very simple broker. Think of it as a chat room server but for pub-sub. It does not provide any message persistance or queueing for now. What is not recieved by the subscribers is lost for ever!

TODO

  • client library
  • queueing messages inside broker
  • message persistence
  • health check if subscribers

Thanks to Pilutau for inspiring this project.

About

A fast, simple, pure golang pub-sub broker.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages