Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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.