6
0
mirror of https://git.mills.io/prologic/msgbus.git synced 2024-06-28 17:51:42 +00:00
A real-time message bus server and library written in Go with strong consistency and reliability guarantees.
Go to file
2017-08-06 23:01:24 -07:00
cmd Fix msgbusd cli 2017-08-06 23:01:24 -07:00
msgbus_test.go Initial Commit 2017-06-03 16:16:17 +01:00
msgbus.go Various improvements in conjunction with https://github.com/prologic/autodock/tree/go-port 2017-08-06 16:31:32 -07:00
queue_test.go Initial Commit 2017-06-03 16:16:17 +01:00
queue.go Initial Commit 2017-06-03 16:16:17 +01:00
README.md :) (#1) 2017-06-08 07:47:16 -07:00
server.go Various improvements in conjunction with https://github.com/prologic/autodock/tree/go-port 2017-08-06 16:31:32 -07:00

A Message Bus server and library written in Go

WIP: THis is still highly experimental and not fit for production use.

Install

$ go install github.com/prologic/msgbus/...

Usage

Run the message bus daemon/server:

$ msgbusd

Subscribe to a topic using the message bus client:

$ msgbus sub foo
2017/06/07 21:52:27 Listening for messages from ws://localhost:8000/push/foo
2017/06/07 21:52:36 Received: hello
2017/06/07 21:52:50 Received: hello
^C

Send a few messages with the message bus client:

$ msgbus pub foo hello
$ msgbus pub foo hello

Design

Design decisions so far:

  • In memory queues
  • HTTP API
  • Websockets for realtime push of events

Enjoy :)