A simple, laid back, RESTful in-memory message queue.
via golang:
$ go get -u github.com/kcmerrill/crush
or via docker:
$ docker run -P -d --name crush kcmerrill/crush
Submitting a message is as simple as GET/POST request. If you only need the id, there is no need to post a body. However, posting a body will be the messages value
. Retreiving a message is as simple as GET /topicname
.
In the following example, we'll create a message(and topic too!). The topic is nemo-characters
with a new message. message.id = "crush"
and message.value = "the turtle"
.
$ curl -X POST -d "the turtle" http://localhost:8000/nemo-characters/crush
or
$ curl -X GET http://localhost:8000/nemo-characters/nemo
$ curl -X GET http://localhost:8000/nemo-characters
$ curl -X DELETE http://localhost:8000/nemo-characters/nemo