Traffic Flow Cloud Dataflow/Apache Beam demo.
Create a Google Cloud project. Enable PubSub, BigQuery and Cloud Dataflow APIs.
Simulator
- Grab your keyfile.json with PubSub publish permissions and put it in: simulator/src
- Copy the file simulator/src/config/config-template.js to simulator/src/config/config.js and change the settings for your project.
- Run the simulator server inside the src folder:
./sim-server.js
Dataflow Pipeline
- Build:
./gradlew fatJar
- Publish the pipeline: customize and run
./deploy.sh
Visualizer
- Serve the folder
visualizer
using any webserver. - Open it in your browser.
- Simulator
- Dataflow Pipeline
- Map visualizer