Compiler-Hidden PostgreSQL Continuations for Direct-Style Server Programs
Publisher: Unknown Publisher
About This Book
Compiler-Hidden PostgreSQL Continuations for Direct-Style Server Programs presents Gray’s compiler-hidden PostgreSQL continuation architecture for direct-style server programs. This volume describes how Gray preserves direct source-order database calls while moving connection establishment, query dispatch, output flushing, input consumption, result draining, cancellation, and connection retirement onto readiness-driven runtime state machines. The architecture is designed to avoid assigning an ordinary worker to every blocked database handler while preserving cancellation, typed errors, source order, and operational cleanup. The work responds to a retained one-hour baseline that delivered 3,999.85 requests per second at 4,000 requested but accumulated 802.82 ms corrected p99 latency. The replacement continuation path placed the useful corrected-latency knee between 12,000 and 16,000 requested requests per second. A separate Static qualification with PostgreSQL 16, a 64-connection pool, four wrk2 threads, and 256 persistent HTTP connections delivered 7,961.48 requests per second at 8,000 requested, with 1.43 ms corrected p50, 4.60 ms p99, and 8.74 ms p99.9. During load, the runtime exposed as many as 164 simultaneously suspended handlers while using zero general task workers; after completion, active task, worker, and continuation counts returned to zero. Semantic gates covered overlapping queries, typed errors after resumption, HTTP/2 multiplexing, cancellation and connection replacement, 404/500 behavior, and Adaptive deployment replacement. This book is intended for systems programmers, compiler/runtime engineers, backend infrastructure teams, database engineers, and readers interested in direct-style server programming, nonblocking PostgreSQL execution, readiness reactors, and reproducible systems qualification.
ISBN: 9798191410890
Unlock Exclusive Content
Experience the hidden layers of 'Compiler-Hidden PostgreSQL Continuations for Direct-Style Server Programs'. Scan the book cover with the Appilog mobile app to see behind-the-scenes videos, author reviews, and interactive digital stories.
Available on iOS & Android

