BUILD: VALIDATED RUNTIME: .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
<50ms p95 latency
99.9% success rate
1.5 / 550 CPU cores / MB RAM
.NET 9 C# 12 Native AOT Nginx PostgreSQL

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/load stress profile
  2. nginx least_conn
  3. api-1 / api-2 .NET 9 AOT
  4. postgres stored procedures

benchmark proof

Stress results, not decorative numbers

46k+ requests / second

k6 stress run evidence

<50ms p95 latency

under concurrent load

99.9% success rate

archived CI reports