https://github.com/jonathanperis/rinha2-back-end-dotnet
C#, Postgresql, Nginx e ódio
https://github.com/jonathanperis/rinha2-back-end-dotnet
Last synced: about 1 year ago
JSON representation
C#, Postgresql, Nginx e ódio
- Host: GitHub
- URL: https://github.com/jonathanperis/rinha2-back-end-dotnet
- Owner: jonathanperis
- License: mit
- Created: 2024-02-29T11:50:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-18T19:08:01.000Z (about 1 year ago)
- Last Synced: 2025-03-18T19:46:28.314Z (about 1 year ago)
- Language: HTML
- Homepage: https://jonathanperis.github.io/rinha2-back-end-dotnet/
- Size: 4.34 MB
- Stars: 2
- 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 C# da [rinha de backend 2ª edição - 2024/Q1](https://github.com/zanfranceschi/rinha-de-backend-2024-q1).
## Stack
- aspnet 8.0
- nginx
- postgresql
## Otimizações
- [AOT](https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot)
- [Trimming](https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trimming-options?pivots=dotnet-8-0#trimming-framework-library-features)
## 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 (.NET)


- Proxy reverso (Nginx)

## Versões alternativas
### Implementações que elaborei em outras linguagens
- [rinha2-back-end-go](https://github.com/jonathanperis/rinha2-back-end-go)
- [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)
Este repositorio foi desenvolvido utilizando de minha experiencia profissional e inspirado nos seguintes colegas da rinha:
- [rafaelpadovezi/rinha-2](https://github.com/rafaelpadovezi/rinha-2)
- [giggio/rinhaback2401-01](https://github.com/giggio/rinhaback2401-01)
- [zanfranceschi/rinha-de-backend-2024-q1-zan-dotnet](https://github.com/zanfranceschi/rinha-de-backend-2024-q1-zan-dotnet)
- [offpepe/rinha-2024-q1](https://github.com/offpepe/rinha-2024-q1)