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.
Subjects
People
Places
Times
| Edition | Availability |
|---|---|
|
1
Compiler-Hidden PostgreSQL Continuations for Direct-Style Server Programs
2026, Grayworth, Inc.
9798191410890
|
aaaa
|
Book Details
Edition Notes
Edition Identifiers
Work Identifiers
Links outside Open Library
Community Reviews (0)
Wikipedia citation
Copy and paste this code into your Wikipedia page.
{{cite book|author=Annabella Proctor |date=2026 |title=Compiler-Hidden PostgreSQL Continuations for Direct-Style Server Programs |publisher=Grayworth, Inc. |isbn=979-8--19141089-0 |ol=62419950M}}
