Uma versão em Ruby puro da rinha do backend 2ª edição 2024/Q1, sem frameworks.
,d ,d
88 88
MM88MMM ,adPPYba, 8b,dPPYba, MM88MMM 88 88 ,adPPYb,d8 ,adPPYYba,
88 a8" "8a 88P' "Y8 88 88 88 a8" `Y88 "" `Y8
88 8b d8 88 88 88 88 8b 88 ,adPPPPP88
88, "8a, ,a8" 88 88, "8a, ,a88 "8a, ,d88 88, ,88
"Y888 `"YbbdP"' 88 "Y888 `"YbbdP'Y8 `"YbbdP"Y8 `"8bbdP"Y8
aa, ,88
"Y8bbdP"
- 2 Ruby 3.3 +YJIT apps
- 1 PostgreSQL
- 1 NGINX
$ make help
Usage: make <target>
help Prints available commands
start.dev Start the rinha in Dev
start.prod Start the rinha in Prod
docker.stats Show docker stats
health.check Check the stack is healthy
stress.it Run stress tests
docker.build Build the docker image
docker.push Push the docker image$ docker compose up -d nginx
# Ou então utilizando Make...
$ make start.devTestando a app:
$ curl -v http://localhost:9999/clientes/1/extrato
# Ou então utilizando Make...
$ make health.checkColocando Gatling no barulho:
$ make stress.it
$ open stress-test/user-files/results/**/index.html