Skip to content

Perf/api load testing and scaling plan - #365

Merged
jotel-dev merged 5 commits into
Nullifier-Systems:mainfrom
extolkom:perf/api-load-testing-and-scaling-plan
Jul 30, 2026
Merged

Perf/api load testing and scaling plan#365
jotel-dev merged 5 commits into
Nullifier-Systems:mainfrom
extolkom:perf/api-load-testing-and-scaling-plan

Conversation

@extolkom

Copy link
Copy Markdown
Contributor

closes #40

Load Testing Tooling & Test Scenarios:

Enhanced

k6-load-test.js
with explicit Baseline Load (1 VU), Ramp-Up (10 -> 50 VUs), Sustained Soak Test (50 VUs constant), and Spike Test (250 VUs burst) scenarios.
Updated

run-load-test.js
native runner to capture response latencies (p50/p90/p95/p99), RPS, and error rates, outputting structured metrics to

load-test-results.json
.
Bottleneck Analysis:

Soroban RPC Contention: Monotonic sequence number collisions (txBAD_SEQ), synchronous simulation delays (~1–2s), and worker thread blocking during ledger polling (15s–45s).
Database & Storage Layer: In-memory Map state (store.ts) causing split-brain when horizontally scaling, lack of connection pooling (PgBouncer needed).
Fastify Error Handler: @fastify/rate-limit throwing standard JS errors that fall through to 500 internal server error blocks instead of returning HTTP 429.

@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown

@extolkom is attempting to deploy a commit to the jotelfootball-tech's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
velo Ready Ready Preview Jul 30, 2026 2:25am
velo-frontend Ready Ready Preview Jul 30, 2026 2:25am

@jotel-dev

Copy link
Copy Markdown
Contributor

@extolkom you did a very good job 👍
LGTM

@jotel-dev
jotel-dev merged commit d8f1f1b into Nullifier-Systems:main Jul 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Load testing and scaling plan

2 participants