proomt

Search

Search posts, papers, and topics

All posts

NeonCarlota Soto5 min readintermediate

Neon Functions: backend logic next to your data

Summary

Neon Functions are server‑less Node.js 24 compute that run on the same branch and region as Neon’s Lakebase Postgres, giving low‑latency DB access, long‑running connections for agents/WebSockets, automatic credential injection, and branch‑aware deployment via neon.ts. They’re meant for data‑adjacent backend logic, not full‑stack hosting, and future plans include native cron and event triggers.

  • Functions execute in the same infra and region as the Neon branch, eliminating cross‑network round‑trips for every query.
  • A long‑running runtime (no Lambda‑style caps) lets agents stream for minutes and keeps WebSocket/SSE connections open.
  • Neon automatically injects DATABASE_URL and other backend credentials (Object Storage, AI Gateway, Auth) into the function’s environment.
  • Functions are branch‑aware: creating a child branch clones the function with its own URL and DB connection, and deleting the branch removes the function.

Running backend logic next to the database cuts latency and connection overhead, which is critical for AI agents, real‑time apps, and any workload that streams data or holds long‑lived connections. Branch‑level isolation also aligns backend code with Neon’s core branching model, simplifying preview…

6/10

Related reading

  1. Introducing Neon Labs

    Neon Labs is a new experimental web app (Next.js + TypeScript) that offers two PostgreSQL upgrade tools: a live‑catalog Upgrade Assessment that flags version‑specific blockers, and a Migration Assistant that auto‑generates import, pg_dump/restore, or logical‑replication pipelines based on DB size and downtime needs. The tools run read‑only against a Neon project, never expose connection strings,…

    Neonneon.com6 minrelease
  2. Neon is now available in Grok Bot

    Neon released a Grok Bot plugin that lets the AI assistant manage Neon PostgreSQL databases. After a one‑time auth, the bot can create projects, spin up isolated branches, run SQL, list databases, and set up usage‑summary routines directly from chat.

    Neonneon.com1 min
  3. Query Neon backend logs

    Neon has introduced new capabilities to query backend logs for Neon Functions and Object Storage outside of the console. This includes a new CLI, API, SDK, and direct Loki endpoint access, allowing unified log inspection across different backend services on a branch.

    Neonneon.com3 min
  4. WAL + S3: Lakebase storage for the era of agents

    Neon's Lakebase Postgres redefines database storage by making the WAL the source of truth, stored on S3, rather than data files. This transaction-centric approach enables instant branching, time travel, and scalable, decoupled compute and storage for Postgres.

    Neonneon.com14 min
  5. Just landed in the Neon CLI

    Neon renamed its CLI to `neon` and added a suite of commands for agent onboarding, branch‑first development, diagnostics, credential management, schema diffing, API fallback, snapshots, auth, Data API, and a built‑in psql client. The post lists usage examples and flags for each new feature.

    Neonneon.com5 minrelease
  6. Electric is joining team Neon at Databricks

    Databricks announced that the Electric team, creators of the WASM‑compiled Postgres engine PGlite and a real‑time sync layer, is joining Neon. The integration adds an embedded Postgres database and continuous sync primitive to Neon’s platform, aiming to lower compute costs for small, agent‑driven apps.

    Neonneon.com3 min