An open API service indexing awesome lists of open source software.

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

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 -