AIARCOASC Docs

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 30s
client.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

LimitDefaultBurstNotes
Pooled connection-hours$1.00 / 1K
Queue operations$0.40 / M
Max in-flight messages1,000,000Per queue
Max message size256 KiB

Pricing

See pricing. Pay-as-you-go, billed monthly via Stripe.

API surface

  • POST /v1/edge/db-accel
  • POST /v1/edge/queues/{q}/send
  • POST /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.