concept: connectionLess - davidkhala/database GitHub Wiki

ConnectionLess

Challenge of Serverless: Database Connections

For example, with PlanetScale/Supabase/Fauna, you can consider them "connectionless" - connecting pooling isn't an issue, as database queries are made over HTTP! They provide a database as an API. -- A planetscale community discussion

The data revolution along with serverless app revolution, is ConnectionLess

  • aka. Data API

Providers

Add-ons

Common solution practice

2 tiers connection limit

  • When a database reaches the soft-limit we start to terminate the idle connections. We continue to accept new connection requests until the hard-limit is reached. If the database reaches the hard limit then we start rejecting new connections.
  • Similar to AWS Lambda approach