![Dependency Status](https://camo.githubusercontent.com/1cfdc93967524e79b8e45799922eb1da57e23da362e073297ea5881236f70906/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3538313361373961636430363961333431383037396661302f62616467652e737667)
A scalable microservice application using Spring Cloud targeting athletes by tracking their location during their workout in real-time allowing them to participate together along with others at the same area within a distance limit.
The application has automatic service discovery mechanisms (Netflix Eureka), self-healing in case of failure with Circuit Breakers (Hystrix), Docker container instance scaling, auto-restarting capability.
The presentation layer consists of rest-endpoints and websockets using Stomp.
Services communicate internally through message-queues (RabbitMQ) by propagating messages from one to another.
Data is stored in two types of NoSQL databases, MongoDB for client data and Redis for user geolocation and geospatial queries.
Finally, there is a monitoring system behind collecting metrics and events with ELK stack (Elastic, Logstash, Kibana).
![Application Diagram alt text](https://raw.githubusercontent.com/Vento/rest-api/master/docs/appdiagram.png)
Service |
port |
Config |
8888 |
Registry |
8761 |
Auth |
3000 |
Gateway |
80 |
Profile |
1000 |
Match |
2000 |
Monitoring (Hystrix Dashboard) |
8080 |
Tracing |
9411 |
RabbitMQ Management |
5672 |
Logging (Kibana) |
5601 |
HTTP Method |
URI |
Protected |
GET |
/{name} |
No |
GET |
/me |
Yes |
PUT |
/me |
Yes |
POST |
/me/routes |
Yes |
PUT |
/me/routes |
Yes |
POST |
/me/records |
Yes |
PUT |
/me/records |
Yes |
POST |
/ |
No |
HTTP Method |
URI |
Protected |
POST |
/ |
No |
GET |
/me |
Yes |
Websocket |
URI |
Publish |
/track/{username} |
Publish |
/request/{username} |
Subscribe |
/around/{username} |
Subscribe |
/topic/requests/{username} |
Subscribe |
/around/me |
![Deploy Diagram alt text](https://raw.githubusercontent.com/Vento/rest-api/master/docs/deploydiagram.png)