Shortener Presets
Shlink v4 RoadRunner High-RPS Persistent Worker Preset
Push 9,500+ sustained 302 req/s using Shlink RoadRunner persistent PHP workers, Redis pub/sub caching, and bounded worker memory recycling.
9,500+ req/s · 2.4 ms p95 · 8 Workers · KVM 4 or Vultr HF
Why RoadRunner Outpaces Standard PHP-FPM & Single-Thread Node
RoadRunner keeps the Shlink dependency container resident in memory across requests, eliminating per-request autoloading overhead. On 4 vCPU Hostinger KVM 4, 8 persistent workers push past 9,500 req/s with 2.4 ms p95 latency.
Guarding Against Per-Worker GeoLite2 Duplication
Each RoadRunner worker maps its own GeoLite2-City.mmdb reader (~140 MB RSS). Size RAM as worker_count * 200 MB when enabling city-level geolocation.
Measured Thresholds & Shortener Stack Parameters
| Parameter / Setting | Recommended Value | Operational Reason |
|---|---|---|
| RoadRunner Worker Pool | WEB_WORKER_NUM=8 (max_jobs=10000) | Prevents PHP-FPM boot tax while recycling memory leaks safely |
| Redis Cache Driver | Redis 7 (maxmemory 1024mb) | Handles 2.5M short slugs with sub-millisecond GET lookups |
| Async Visit Queue | RabbitMQ / Redis Worker Offload | Flushes click telemetry asynchronously out-of-band |
| Host Match | Hostinger KVM 4 (16 GB) / Vultr HF 8 GB | 4 dedicated vCPUs or 3.8 GHz HF cores sustain 9k-22k req/s |