DB Accelerator & Queues
Pooled connections to your origin Postgres/MySQL from edge functions. Durable queues with retries + DLQ.
What it is
DB Accelerator gives edge functions a connection-pool to your origin database — no more 'connection exhaustion' from thousands of cold isolates. Durable Queues let you enqueue work from one PoP and consume it from anywhere, with retries, DLQ and at-least-once delivery.
When to use it
- Run live SQL from an edge function without burning origin connections.
- Decouple ingest from processing — webhook receiver enqueues, consumer drains.
- Cross-region work distribution.
Quickstart
asc edge db-accel create prod --origin 'postgres://user:pw@db.example.com:5432/app' --pool 50
asc edge queues create webhook-ingest --visibility-timeout 30sclient.edge.db_accel.create('prod', origin='postgres://...', pool=50)
client.edge.queues.create('webhook-ingest', visibility_timeout_s=30)await client.edge.queues.send('webhook-ingest', { body: 'hello' });
await client.edge.queues.receive('webhook-ingest', { maxMessages: 10 });Limits & quotas
| Limit | Default | Burst | Notes |
|---|---|---|---|
| Pooled connection-hours | $1.00 / 1K | — | |
| Queue operations | $0.40 / M | — | |
| Max in-flight messages | 1,000,000 | — | Per queue |
| Max message size | 256 KiB | — |
Pricing
See pricing. Pay-as-you-go, billed monthly via Stripe.
API surface
POST /v1/edge/db-accelPOST /v1/edge/queues/{q}/sendPOST /v1/edge/queues/{q}/receive
Required scope(s): edge:write. See Scopes.
Security
All access is authenticated and scoped. See Auth & scopes and Network controls.