A Go reimplementation of the Rinha de Backend competition API, built for learning purposes. Based on the .NET version that achieved a perfect score in the official competition.
// about
The Rinha de Backend - Segunda Edicao was a performance competition where developers built HTTP APIs handling financial transactions (credits/debits) under strict resource constraints. The APIs had to manage concurrent load while maintaining data consistency — all within tight CPU and memory limits enforced via Docker.
Two endpoints were required: POST /clientes/{id}/transacoes for processing transactions and
GET /clientes/{id}/extrato for account statements. The evaluation criteria were brutal:
98% of responses under 250ms and zero balance inconsistencies.
// competition result
The original .NET implementation that this project is based on achieved a perfect score in the official Rinha de Backend competition — zero penalties across both evaluation criteria.
// tech stack
// stress tests
Reports generated automatically via
GitHub Actions
on every push to main. Previously built on Gatling/Scala, now migrated to Grafana K6 for native CI/CD integration.
// stress tests
All implementations are validated by the same Grafana K6 stress test suite, originally written in Gatling/Scala.
// other implementations
Other implementations of the same challenge, sharing the same PostgreSQL stored-procedure strategy.