BUILD: VALIDATEDRUNTIME: .NET 9 Native AOT

Rinha de Backend 2024/Q1 // constrained systems entry

Runs on Every OS.
Even Windows.

A high-throughput fictional bank API built with ASP.NET Minimal APIs, PostgreSQL stored procedures, and Npgsql multiplexing under a 1.5 CPU / 550MB budget.

46k+requests/second
<50msp95 latency
99.9%success rate
1.5 / 550CPU cores / MB RAM
.NET 9C# 12Native AOTNginxPostgreSQL

runtime budget

System constraints as deployed parameters

The challenge is not raw hardware. It is throughput while two API instances, one load balancer, and one database share a tiny resource envelope.

constraints.config

locked
API_INSTANCES
2
LOAD_BALANCER
nginx x1
DATABASE
postgres x1
CPU_TOTAL
<= 1.5 cores
MEMORY_TOTAL
<= 550 MB

request path

topology
  1. k6/loadstress profile
  2. nginxleast_conn
  3. api-1 / api-2.NET 9 AOT
  4. postgresstored procedures

benchmark proof

Stress results, not decorative numbers

46k+requests / second

k6 stress run evidence

<50msp95 latency

under concurrent load

99.9%success rate

archived CI reports