Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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