Beruflich Dokumente
Kultur Dokumente
2. Backend Deployment
2.1 Pipeline Deployment
1. Install RabbitMQ
2. Install MongoDB
3. Run as a service / Ubuntu 16.10 - sudo systemctl start rabbitmq
4. There are 4 services that needs to be run parallel
a. Dublin Bus Producer
b. Dublin Bikes Producer
c. Dublin Bus Consumer
d. Dublin Bikes Consumer
5. To deploy Dublin Bus Consumer - Download / extract the Dublin Bus
Consumer project and run the following command to check end-to-end flow.
a. python main.py --host=localhost --flag=bus --start_index=0 --
end_index=10.
b. This runs a pass from stops indexed from 0 to 10 (11 total) and throws
it to the message broker pipeline.
6. To deploy Dublin Bikes Consumer - Download / extract Dublin Bikes
Consumer project and run the following command to check end-to-end flow
a. python main.py --host=localhost --flag=bikes
b. This runs a pass on all Dublin Bikes data and throws it to the message
broker pipeline.
7. To deploy the Dublin Bus and Dublin Bikes consumer, download and extract
the respective Consumer projects and run
a. python main.py --host=localhost --flag=bus | bikes (respective
pipelines).