https://github.com/jonathanperis/rinha2-back-end-go
Go, Postgresql, Nginx e ódio
https://github.com/jonathanperis/rinha2-back-end-go
Last synced: 4 months ago
JSON representation
Go, Postgresql, Nginx e ódio
- Host: GitHub
- URL: https://github.com/jonathanperis/rinha2-back-end-go
- Owner: jonathanperis
- License: mit
- Created: 2025-03-10T14:45:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-19T17:06:01.000Z (about 1 year ago)
- Last Synced: 2025-10-05T15:44:54.385Z (8 months ago)
- Language: PLpgSQL
- Homepage: https://jonathanperis.github.io/rinha2-back-end-go/
- Size: 8.97 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rinha de Backend - Segunda Edição
Versão Go da [rinha de backend 2ª edição - 2024/Q1](https://github.com/zanfranceschi/rinha-de-backend-2024-q1).
## Stack
- go
- nginx
- postgresql
## Rodando o projeto
```bash
docker compose up nginx -d --build
```
## Resultados
### Resultado do Gatling local
Todas requisições abaixo de 800ms. (Estes testes utilizaram um máximo de 250MB RAM distribuidos entre os recursos. 60% menos recurso de memória RAM do que o permitido pela rinha!


## Métricas dos testes
Métricas colhidas no Docker Desktop após a execução do teste. O teste foi executado em um Mac Mini M1 16GB RAM/512GB SSD.
- Banco de dados (Postgresql)

- Endpoints (Go)


- Proxy reverso (Nginx)

## Versões alternativas
### Implementações que elaborei em outras linguagens
- [rinha2-back-end-dotnet](https://github.com/jonathanperis/rinha2-back-end-dotnet)
- [rinha2-back-end-rust](https://github.com/jonathanperis/rinha2-back-end-rust)
- [rinha2-back-end-python](https://github.com/jonathanperis/rinha2-back-end-python)
- [rinha2-back-end-postgrest](https://github.com/jonathanperis/rinha2-back-end-postgrest)