HTTP-based message broker
Introduction
This is a trivial message broker implementation that utilizes HTTP as its transport. I built this purely as a project to learn node.js. It is certainly not intended to be production-grade software.
Installation
wget 'https://github.com/ycombinator/mbroker_http/archive/master.zip'
cd mbroker_http-master
npm install
Startup
node app.js
HTTP APIs
List topics
GET /topics
Create a new topic
PUT /topic/{id}
Send a message to topic(s)
POST /messages
{ "to": [ "topic1", "topic2" ], "message": "Hello" }
Get all unread messages in a topic
GET /topic/{id}/messages/unread
Get all messages in a topic
GET /topic/{id}/messages