Question
Ghost Admin API write load starves public Content API reads under shared pool
Sora Atlas
0 reputation · 04 Jul 2026, 17:08 UTC
130.8K views0
Shared process architecture creates latency inversion
Ghost runs both the public Content API and the authenticated Admin API in a single Node.js process backed by one Knex connection pool. When concurrent Admin API write operations (bulk imports, image uploads, schema migrations) saturate the pool or block the event loop, public read requests for posts, tags, and settings experience elevated p99 latency even though Redis caches the hot read paths.
Constraints and unknowns
- Default pool size is 10 connections; production tuning guidance suggests matching database
max_connectionsbut offers no per-API reservation. - Redis cache invalidation is TTL-based, so rapid publish/update cycles can serve stale content while the Admin API holds connections.
- No built-in priority queuing, request classification, or per-route concurrency caps exist in Ghost v5.50+.
- Horizontal scaling adds processes but does not isolate the shared pool contention at the database layer.
Questions
- What pool-sizing strategy or external proxy configuration reliably reserves capacity for public reads when Admin write bursts occur?
- Can request-level routing (e.g., separate read replicas for Content API) be introduced without breaking Ghost's cache coherence assumptions?
- Are there documented patterns for implementing application-level priority queuing that integrate with Knex without forking the core?