Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wklken/rabbitmq-http-dispatcher
An simple consumer, dispatch messages to http server.
https://github.com/wklken/rabbitmq-http-dispatcher
Last synced: 3 days ago
JSON representation
An simple consumer, dispatch messages to http server.
- Host: GitHub
- URL: https://github.com/wklken/rabbitmq-http-dispatcher
- Owner: wklken
- License: mit
- Created: 2015-02-20T02:55:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-02-20T03:26:33.000Z (over 9 years ago)
- Last Synced: 2024-04-16T04:46:26.739Z (7 months ago)
- Language: Python
- Size: 141 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rabbitmq-http-dispatcher
An simple consumer, dispatch messages to http server.
First, it's a daemon, read `config.py` and start a lot of consumers.
Then, each consumer get message from rabbitmq, dispatch to a http api, and get http response, read the status code to decide if it's necessary send `ack` to rabbitmq.
```
MQ -> http-dispatcher -> http api
```
# dependency
1. pika
2. the `daemon.py` is from [python-daemon](https://github.com/serverdensity/python-daemon) and make a little change.
thanks to serverdensity