This is an simple API that searches mocked users and send them to an external API.
Each API call lasts 3 seconds.
There are two endpoints:
/default
: Will send the users to external API in a procedural way./concurrent
: Will send the users to external API using concurrency.
I've added some shortcuts in Makefile, so that you can run benchmarks commands simply.
btw, I'm using the go-wrk to run benchmarks the endpoints.
- Build container:
make start
- Get into app & run API:
make app && make run
- To benchmark the "default" route:
make bench_default
- To benchmark the "concurrent" route:
make bench_concurrent