RestMQ is a message queue based on redis. Support Multiple-type data manipulation ways.
- HTTP GET/POST/PUT/DELETE
- WebSocket
Cometnot yet
This repo is rewritten by Go. and there is a more completely implements with python: https://github.com/gleicon/restmq
$ go get github.com/kenshinx/restmq.go
$ cd $GOPATH/src/github.com/kenshinx/restmq.go
$ go run main.go -c restmq.conf
All Configuration in the restmq.conf file. This config file support Toml rule.
More about Toml :https://github.com/mojombo/toml
- List Queues
curl -i -X GET http://localhost:8000/q
- Get Message
curl -i http://localhost:8000/q/kenshin
- Put Message
curl -i -X POST http://localhost:8000/q/kenshin -d 'value={"x":1,"y":2}'
curl -i -X POST http://localhost:8000/q/kenshin -d 'value="xx"'
curl -i -X POST http://localhost:8000/q/kenshin -d 'value=1'
The post message should be json encoded
- Delete Queue
curl -i -X DELETE http://localhost:8000/q/kenshin
The Consumer Url
http://localhost:8000/ws/kenshin
The client demo can reference websocket.html
- github.com/kenshinx/redisq
- github.com/hoisie/redis
- github.com/hoisie/web
- github.com/garyburd/go-websocket/websocket
- github.com/BurntSushi/toml
##TODO
- Control protocol
- Comet consumer
- Web dashboard