Public Repository

Last pushed: 9 months ago
Short Description
Short description is empty for this repo.
Full Description

eta-rest v0.2.0

REST service for calculating ETA value

Prerequisites

  • Docker
  • docker-compose

Start up

To start the services, follow scripts from the shell.

Clone project to neighboring folders.

git clone git@github.com:amaksimov/eta-rest.git
git clone git@github.com:amaksimov/eta-service.git
cd eta-rest

Then launch docker-compose:

docker-compose build
docker-compose run eta-service rake db:create db:migrate db:seed
docker-compose up -d

Api will be available at http://localhost:9292/eta

Usage

Service acepts get requests to /eta path with two params: lat and long

Ex:

GET /eta?long=78.17&lat=79.90

Communication protocol

Services communicate via AMQP protocol.
Cause is it's async, reliable and fast.
Eta-service easily scales by increasing workers count on the same queue.

Docker Pull Command
Owner
amhanter