https://github.com/elgopher/batch-example
Web application example using elgopher/batch package
https://github.com/elgopher/batch-example
batch batch-processing go golang high-performance high-throughput
Last synced: 9 days ago
JSON representation
Web application example using elgopher/batch package
- Host: GitHub
- URL: https://github.com/elgopher/batch-example
- Owner: elgopher
- License: mit
- Created: 2022-05-22T07:39:39.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-28T14:15:52.000Z (about 4 years ago)
- Last Synced: 2025-12-14T10:17:51.582Z (6 months ago)
- Topics: batch, batch-processing, go, golang, high-performance, high-throughput
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Batch example
Web application example using [github.com/elgopher/batch](https://github.com/elgopher/batch) package.
## How to run?
* Install docker, docker-compose, curl
* Start web application with Postgres database
`$ docker-compose up`
* Buy a train ticket
`$ curl -v "http://localhost:8080/book?train=batchy&person=elgopher&seat=3"`
## Load testing
You can run [script.js](script.js) in [K6](https://k6.io) by executing:
`$ docker run --network batch-example_default --rm -i grafana/k6 run -