Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Message broker using Server-Sent Events #415

Merged
merged 12 commits into from
Mar 2, 2017

Conversation

chungers
Copy link
Contributor

@chungers chungers commented Mar 1, 2017

This PR contains a simple message broker build on SSE or server-sent events as a simple implementation of publish subscribe broker that works with unix sockets.

Message subscribers for different topics are organized internally using a radix tree so that a message published to the topic /cluster/controllers/instance will be delivered to subscribers to topics like/cluster, /cluster/controllers or /cluster/controllers/instance.

This is not meant to be a heavy-duty message broker like MQTT but is small and simple enough to be embedded into the core plugin server runtime and allow the plugins to communicate using events.

David Chung added 6 commits February 2, 2017 19:23
…e#382)

Signed-off-by: David Chung <david.chung@docker.com>
Signed-off-by: David Chung <david.chung@docker.com>
Signed-off-by: David Chung <david.chung@docker.com>
Signed-off-by: David Chung <david.chung@docker.com>
@GordonTheTurtle
Copy link

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:

$ git clone -b "plugin-sse" git@github.com:chungers/infrakit.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842353728584
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

David Chung added 2 commits February 28, 2017 23:23
Signed-off-by: David Chung <david.chung@docker.com>
Signed-off-by: David Chung <david.chung@docker.com>
@chungers chungers added this to the v0.5 milestone Mar 1, 2017
@chungers chungers changed the title [WIP] - Message broker using Server-Sent Events Message broker using Server-Sent Events Mar 1, 2017
@chungers chungers merged commit 57ae205 into docker-archive:master Mar 2, 2017
@chungers chungers deleted the plugin-sse branch March 2, 2017 00:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants