This is very similar to Docker's example voting app, except instead of using a message queue and worker, it calls a FaaS function to process votes in the background.
The FaaS function being used is in process-vote/handler.js
, and it is called from vote/app.py
.
Download Docker for Mac or Windows.
Find out more about FaaS
Run in this directory:
$ docker stack deploy func -c ./docker-compose.yml
The app will be running at http://localhost:5000, and the results will be at http://localhost:5001.
The API gateway will run at http://localhost:8080
This repository is a fork of an example Ben Firshman put totgether while @Docker to show how his Funker framework could process votes for the Docker Voting App.