<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/using-neon-s-scale-to-zero-with-long-running-applications-bkdst4kg6" -->

---
title: Using Neon's Scale to Zero with Long-Running Applications
description: Neon's scale-to-zero feature suspends Postgres databases during inactivity, which can sever connections in long-running (non-serverless) applications. The post...
canonical: https://daily.dev/posts/using-neon-s-scale-to-zero-with-long-running-applications-bkdst4kg6
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Using Neon's Scale to Zero with Long-Running Applications | daily.dev
og:description: Neon's scale-to-zero feature suspends Postgres databases during inactivity, which can sever connections in long-running (non-serverless) applications. The post...
og:url: https://daily.dev/posts/using-neon-s-scale-to-zero-with-long-running-applications-bkdst4kg6
og:image: https://api.daily.dev/og/posts/BkDst4kG6.png
og:image:alt: Using Neon's Scale to Zero with Long-Running Applications
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Using Neon's Scale to Zero with Long-Running Applications

**[Neon](https://daily.dev/sources/neontech)** · 7 min read · 0 upvotes · 0 comments

## Summary

Neon's scale-to-zero feature suspends Postgres databases during inactivity, which can sever connections in long-running (non-serverless) applications. The post explains how scale-to-zero is triggered, why naive connection handling fails, and how client-side connection pooling (using node-postgres pg.Pool) solves reconnection and performance issues. Benchmarks show pooled connections deliver ~14x better throughput (370 vs 26.4 req/sec). A real-world example using HTMX, Fastify, and Drizzle ORM demonstrates the full implementation, with source code on GitHub.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://neon.com/blog/using-neons-auto-suspend-with-long-running-applications>

## Similar posts on daily.dev

- [Postgres Postmaster does not scale](https://daily.dev/posts/postgres-postmaster-does-not-scale-fee3cv3ni) · Hacker News · 45 upvotes · 1 comments
- [Inside LuBot's database-per-tenant architecture](https://daily.dev/posts/inside-lubot-s-database-per-tenant-architecture-ov8nljmhn) · Neon · 5 upvotes · 0 comments

---

Tags: [#postgresql](https://daily.dev/tags/postgresql), [#serverless](https://daily.dev/tags/serverless)

[View this post on daily.dev](https://daily.dev/posts/using-neon-s-scale-to-zero-with-long-running-applications-bkdst4kg6)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Using Neon's Scale to Zero with Long-Running Applications","url":"https://daily.dev/posts/using-neon-s-scale-to-zero-with-long-running-applications-bkdst4kg6","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/using-neon-s-scale-to-zero-with-long-running-applications-bkdst4kg6"},"datePublished":"2026-07-09T06:57:49.071Z","dateModified":"2026-07-09T07:00:17.266Z","description":"Neon's scale-to-zero feature suspends Postgres databases during inactivity, which can sever connections in long-running (non-serverless) applications. The post...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/660e02db57b10391da5dd65ccdd067d8?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/660e02db57b10391da5dd65ccdd067d8?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Neon","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Neon","logo":"https://media.daily.dev/image/upload/s--65EDghou--/f_auto/v1724339118/logos/neontech","url":"https://daily.dev/sources/neontech"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/using-neon-s-scale-to-zero-with-long-running-applications-bkdst4kg6","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"postgresql,serverless","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Neon","item":"https://daily.dev/sources/neontech"},{"@type":"ListItem","position":3,"name":"Using Neon's Scale to Zero with Long-Running Applications"}]}
```

