This is the source code of the API from my submission to the "Rinha de Backend, Segunda Edição: 2024/Q1 - Controle de Concorrência" challenge/event.
Please read zanfranceschi/rinha-de-backend-2024-q1 for more information about the event.
The load tests were made with Gatling, more information in the main repository. The html report is also available there.
See also:
- My submission info: zanfranceschi/rinha-de-backend-2024-q1/tree/main/participantes/g-otn
- Event result table: RESULTADOS.md
You'll need to download the submission files (docker-compose.yml
, init.sql
, etc).
You can find it in the main repo: zanfranceschi/rinha-de-backend-2024-q1/tree/main/participantes/g-otn
Subfolder download link (the main repo is heavy, this may be more convinient than cloning)
Requirements: Docker, Docker Compose
- Navigate to that folder and use
docker compose up
, this will run the services locally as it was submitted.
Requirements: Docker, Docker Compose, Node.js
- Navigate to my submission files you download, comment out the APIs and NGINX services. This will run PostgreSQL and run the DB initialization script.
- Clone this repository and navigate:
git clone https://github.com/g-otn/rinha-de-backend-2024-q1-submissao.git
cd rinha-de-backend-2024-q1-submissao
- Install dependencies:
npm i
- Run the project:
npm start
I started making this around 6 hours before the submission window closed. I submitted it around 25 minutes before it closed. I was a bit sad because around 1/3 of the load test requests were failing by some obscure error and I wouldn't figure out why in time. Apparently however in the event's environment it worked great. ¯\_(ツ)_/¯
Thanks to leluque for notifying us that this event was happening.