Simulating ride hailing booking workflow using Temporal.io
- Go 1.14+
- JDK 8+
- Docker and docker-compose
- Buf
- Generate stubs
buf generate
- Run Temporal server
docker-compose up
- Run all the servers (server/main.go and Application.java)
- Run all the workers (worker/main.go)
- Make new booking
POST http://localhost:8090/book { "userId": 1, "trip": { "start": { "latitude": 324, "longitude": 567 }, "end": { "latitude": 324, "longitude": 567 } } }
- Finish the trip
POST http://localhost:8091/arrive?uid=1