# How to use Postgres at the Edge

DevFeed: [How to use Postgres at the Edge](<https://devfeed.tech/articles/how-to-use-postgres-at-the-edge-5405.md>)

Original publisher: [Read original article](<https://neon.com/blog/how-to-use-postgres-at-the-edge>)

Author: Paul Scanlon

Published: 2023-09-19T15:33:04Z

Content type: tutorial

Language: en

Sources: [Blog -- Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [Databases](<https://devfeed.tech/topics/databases.md>), [Next.js](<https://devfeed.tech/topics/next-js.md>), [Serverless](<https://devfeed.tech/topics/serverless.md>), [Vercel](<https://devfeed.tech/topics/vercel.md>), [WebSocket](<https://devfeed.tech/topics/websocket.md>), [API](<https://devfeed.tech/topics/api.md>), [SQL](<https://devfeed.tech/topics/sql.md>)

Tags: [3d](<https://devfeed.tech/tags/3d.md>), [api](<https://devfeed.tech/tags/api.md>), [community](<https://devfeed.tech/tags/community.md>), [data](<https://devfeed.tech/tags/data.md>), [demo](<https://devfeed.tech/tags/demo.md>), [geolocation](<https://devfeed.tech/tags/geolocation.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [http](<https://devfeed.tech/tags/http.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [npm](<https://devfeed.tech/tags/npm.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [serverless](<https://devfeed.tech/tags/serverless.md>), [sql](<https://devfeed.tech/tags/sql.md>), [statistics](<https://devfeed.tech/tags/statistics.md>), [tcp](<https://devfeed.tech/tags/tcp.md>), [tcp-ip](<https://devfeed.tech/tags/tcp-ip.md>), [vercel](<https://devfeed.tech/tags/vercel.md>)

## AI overview

This tutorial explains how to use Neon's serverless driver with Next.js and Vercel Edge Functions to access a serverless Postgres database. It shows how HTTP and WebSockets connect Edge-based applications to Postgres through a Neon proxy, and includes a demo that records geolocation data and visualizes the request journey.

## Source excerpt

In this post, I'd like to introduce Neon's serverless driver which is suitable for use with Vercel Edge Functions. I'll explain how to use it with Next.js and a free Neon serverless Postgres database Here's a demo I created. I've called it Ping Thing. What does Ping Thing do? Whe...