Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johanhaleby/message-counter-lab
Message Counter micro service example
https://github.com/johanhaleby/message-counter-lab
Last synced: about 1 month ago
JSON representation
Message Counter micro service example
- Host: GitHub
- URL: https://github.com/johanhaleby/message-counter-lab
- Owner: johanhaleby
- License: apache-2.0
- Created: 2014-01-31T11:51:17.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-06T08:07:59.000Z (almost 11 years ago)
- Last Synced: 2024-05-01T19:12:23.332Z (7 months ago)
- Language: Java
- Size: 246 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
message-counter-lab
===================An example of a very simple micro service that counts all messages sent in the lab. It's built using DropWizard and is easily deployed to Heroku and uses AMQP (such as RabbitMQ) to listen for messages.
The topic exchange to send messages to is called `lab`. It registers itself as a service on boot.Prerequisites
-------------
If you want to run the program locally you need:1. Java 7
2. Maven 3
3. MongoDB (`brew install mongodb`)
4. RabbitMQ (`brew install rabbitmq`)Deployment
----------
The project contains Heroku configurations in the files `system.properties` and `Procfile`. However you need to [add two properties](https://toolbelt.heroku.com/) pointing out the AMQP url:```bash
heroku config:set AMQP_URL=""
```URL must contain username and password, port etc.