Performance Benchmark
Read+Write
TPS
52 K
Latency
48 ms p(99)
Cost
$62.80
per month / per 1K TPS
Read Only
TPS
0 K
Latency
0 ms p(99)
Write Only
TPS
52 K
Latency
48 ms p(99)
Configuration
Read / Write Allocation: 0% / 100%
Data Unit Size: 500 bytes
Testbed: 2 Gatling instances, 4 cores each, 10 minutes progressive throughput, 10 minutes of max throughput
App: Akka 2023.10, 40K entities, event sourced log, source code
Infrastructure: Google Cloud Platform (GCP)
1 GKE cluster with 10 n2-std-8 nodes ($1,893.51 / mo with 1-yr full upfront)
4 PostgresSQL with 8 vCPUs 32GB memory, 250 GB SSD ($343.12 / mo with 1-yr full upfront)
Total Monthly Cost: $3,265.98
Definitions
TPS: # of data units processed (read & write) / second
Latency: round trip HTTP request-response time measured during peak TPS
Cost: Total reserved instance costs for a 31 day month ratioed against 1K TPS
This was a sample test to demonstrate that 52,000 req/s of load with 0% reads and 100% writes was possible on GCP with Akka whose events are persisted to a Postgres database. This application simulates a digital twin solution, where a single Akka actor represented an IOT device that had to persist 500 bytes of information on each update.