https://github.com/nirev/booming_proxy
https://github.com/nirev/booming_proxy
docker elixir rabbitmq
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nirev/booming_proxy
- Owner: nirev
- Created: 2017-09-26T02:54:48.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-07-28T04:46:22.000Z (almost 6 years ago)
- Last Synced: 2025-02-16T09:45:45.105Z (over 1 year ago)
- Topics: docker, elixir, rabbitmq
- Language: Elixir
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BoomingProxy
A simple proxy for a RabbitMQ RPC queue.
Things that could be improved or I'm not particularly proud of:
- No tests
- Definitely could add something along the line of http://blog.plataformatec.com.br/2015/10/mocks-and-explicit-contracts/ in order to test both controllers.
- GenServer could be decoupled from amqp to be testable, as well
- Use distillery to generate docker image
- RPC calls could be cached using ETS for a configurable time
## Running it
```shell
SECRET_KEY_BASE=something docker-compose up --build
```
The Proxy is exposed on port 14000:
```shell
$ curl http://localhost:14000/clients.json
{"clients":["google","facebook","yahoo","twitter"]}
curl http://localhost:14000/invoices.json?client_id=twitter
{"invoices":[{"total":"12 USD","services":"Telling everybody its hard to add edit button","customer":"Who cares"}]}
```