https://github.com/jonathanperis/rinha2-back-end-rust
Rust, Postgresql, Nginx e ódio
https://github.com/jonathanperis/rinha2-back-end-rust
Last synced: 5 months ago
JSON representation
Rust, Postgresql, Nginx e ódio
- Host: GitHub
- URL: https://github.com/jonathanperis/rinha2-back-end-rust
- Owner: jonathanperis
- License: mit
- Created: 2025-03-11T00:31:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-20T00:44:49.000Z (about 1 year ago)
- Last Synced: 2025-04-04T21:18:53.963Z (about 1 year ago)
- Language: PLpgSQL
- Homepage: https://jonathanperis.github.io/rinha2-back-end-rust/
- Size: 1.11 MB
- Stars: 0
- 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 Rust da [rinha de backend 2ª edição - 2024/Q1](https://github.com/zanfranceschi/rinha-de-backend-2024-q1).
## Stack
- rust
- 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 (Rust)


- 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-go](https://github.com/jonathanperis/rinha2-back-end-go)
- [rinha2-back-end-python](https://github.com/jonathanperis/rinha2-back-end-python)
- [rinha2-back-end-postgrest](https://github.com/jonathanperis/rinha2-back-end-postgrest)