ZICQ
中 Log in / Sign up
Newsroom Agentic #Vercel Board #Bring Your Own Backend #PostgreSQL #OIDC #Vercel Queues

Vercel Board Adds Bring-Your-Own Postgres Backend Support

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published:

中文阅读 (Chinese) English Version
Co-reading Select any sentence in the article to highlight, annotate, or copy a quote card. Join discussion ↓

Summary:Vercel has added the first SDK-supported bring-your-own backend to `@vercel/board` 0.57.0. Developers can mount a Board on their own API endpoint with `postgres()`, persist its data in PostgreSQL, and retain the same API contract exposed by a team Board in Vercel's API. The change provides database portability rather than complete platform independence: the documented integration still uses private Vercel Blob for files and Vercel Queues for timers and scheduled messages. OIDC is the default au


Vercel has introduced the first SDK-supported bring-your-own backend in `@vercel/board` 0.57.0: `postgres()`. A Board can now be mounted on an API endpoint operated by the developer while preserving the same API contract exposed by a team Board in Vercel's API. This is database portability, not full-stack independence: the documented integration still uses private Vercel Blob for files and Vercel Queues for timers and scheduled messages. ## Architecture breakdown: separate data, file, and scheduling planes The implementation does not collapse every responsibility into a single service. Instead, it separates the Board runtime into four configurable boundaries: | Layer | Component | Primary responsibility | Current constraint | |---|---|---|---| | API layer | `postgres()` and the Board route | Expose the Board API and connect it to persistent storage | Maintains the same API semantics as a team Board in Vercel's API | | Data layer | PostgreSQL | Store persistent Board data | Reads `DATABASE_URL` or `POSTGRES_URL`, or accepts a connection string or `pg` pool | | File layer | `vercelBlob()` | Store files used by the Board | Uses private Vercel Blob, with a 100 MB maximum per file | | Scheduling layer | `vercelQueues()` | Execute timers and scheduled messages | The scheduler requires a dedicated route and is triggered through a queue topic | This division allows the database and API layer to move outside Vercel's managed data plane while reusing Vercel's object storage and queue infrastructure. It lowers the cost of migrating only the database instead of the entire platform, but it also means the current solution is not a completely independent self-hosted stack: files and scheduling remain tied to Vercel services. ## Compatibility path: preserve the API while relocating persistence For existing clients, the primary change is the backend location rather than the Board's business-level API. Teams can retain their existing call patterns and simply point them at the new endpoint. The CLI uses `vercel board --url` to select that route. The integration requires the following configuration: 1. Upgrade `@vercel/board` to `0.57.0` or later, and install `pg`, `@vercel/blob`, and `@vercel/queue`. 2. Mount the Board with `postgres()`. The database can be configured through `DATABASE_URL`, `POSTGRES_URL`, an explicit `connectionString`, or an existing `pg` pool. 3. Apply the schema shipped with the package before the first deployment so the application does not start ahead of its tables and indexes. 4. Use the database provider's pooled connection URL. An `pg` pool can hold up to 10 connections per instance, making a plain connection string more likely to exhaust the backend connection budget during scale-out. 5. Keep the API route and scheduler route separate, with the queue topic responsible for invoking the scheduler. 6. When operating outside Vercel, configure `url` and provide custom caller verification through `authenticate`. OIDC is the default identity path. Within Vercel, team members and the project's own deployments are admitted by default, while other projects and GitHub Actions workflows require grants. A deployment outside Vercel must redefine the relevant issuer, audience, and trust domain rather than inheriting assumptions from Vercel's internal identity environment. ## Engineering trade-offs: connections, migrations, and scheduling consistency ### The connection pool may become the first bottleneck If every runtime instance can hold up to 10 client connections, a rough upper bound is: `C_client ≈ N_instances × 10` This represents client-side pool capacity, not necessarily the number of backend sessions, because an external pooler may reuse connections further downstream. Even so, 20 fully utilized instances could attempt to occupy 200 client pool slots. Rapid function scaling, migration jobs, and background workers can create additional connection pressure. Production deployments should use the provider's pooled URL, derive the per-instance `pg` pool size and maximum concurrency from the database connection limit, and consider a transaction- or session-level pooler when appropriate. Monitoring should cover active connections, pool wait time, rejected connections, transaction latency, and instance scale events rather than relying only on API latency. ### Pre-applying the schema reduces startup coupling but increases version binding Requiring the schema to be applied before the first deployment avoids high-risk DDL in the API startup path. It also binds a code version to a specific database structure, meaning an older release may not tolerate a newer schema after a rollback. Production releases should retain migration records, verify the schema version before deployment, and use an expand-backfill-switch process for destructive changes. The announcement does not state whether migrations are automated, nor does it provide online-DDL or rollback guarantees. ### A dedicated scheduler route requires explicit idempotency `vercelQueues()` executes timers, while the scheduler is deployed on a dedicated route and invoked by a queue topic. Because the material does not disclose delivery and retry semantics, a task should not be assumed to execute exactly once. Scheduled messages should carry stable idempotency keys, and consumers should persist execution state while using leases or deduplication records to handle duplicate delivery, process termination, and retry timeouts. Operational monitoring should cover queue backlog, trigger delay, duplicate execution rate, and oldest-message age in addition to API errors. ### Database portability does not move files or identity boundaries `vercelBlob()` continues to store files in private Vercel Blob, with a maximum of 100 MB per file. Moving Board data to a private PostgreSQL database therefore addresses control and data residency for that database, but does not relocate files automatically. Security reviews must also validate the OIDC token issuer, audience, expiry, and replay resistance. With a custom `authenticate` implementation, authorization must not rely solely on request headers or a guessable project identifier. ## Performance evidence and validation gaps The update provides no figures for API throughput, P50/P95/P99 latency, cold-start time, queue delay, migration duration, connection-pool saturation, or recovery time. It also provides no comparative benchmark against the previously managed backend. Performance improvement or cost reduction therefore cannot be claimed from the available material. At minimum, production validation should cover: - Cold and warm P50, P95, and P99 latency plus throughput for the Board API; - `pg` pool waits, rejected database connections, and transaction latency during concurrent instance scale-out; - Duplicate queue delivery and interrupted consumers, verifying that scheduled messages execute idempotently; - File uploads and reads near the 100 MB limit, together with permission isolation; - Allow and deny tests for team members, project deployments, external projects, and GitHub Actions; - Expired tokens, incorrect audiences, cross-project requests, and replay attempts under a custom `authenticate` path. ## Deployment recommendations A minimal environment can start with: `npm install @vercel/board@^0.57.0 pg @vercel/blob @vercel/queue` The deployment order should be database and schema, API route, dedicated scheduler route, OIDC or custom authentication, and finally CLI attachment. Before production traffic, add idempotency controls to queue consumers, establish a database connection budget, and create separate monitoring and rollback paths for the API, queue, and schema. Once deployment is complete, use `vercel board --url ` to verify CLI connectivity to the self-managed endpoint. The main value of this release is that Board database residency and the hosting boundary can now be renegotiated without unnecessarily changing the client API. It is useful for teams that require stronger data control, auditability, or custom deployment topology. However, Vercel Blob, Queues, and OIDC remain explicit dependencies, so the update should not be interpreted as full-stack self-hosting. --- > **Source**: [Vercel Blog](https://vercel.com/changelog/bring-your-own-backend-for-vercel-board) (2026-11-30) — END —

Tags: #Vercel Board #Bring Your Own Backend #PostgreSQL #OIDC #Vercel Queues

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

What's your take on this story?
Explore & Submit Works

Community Comments

Loading live comments and annotations…