The MapScaping Podcast - GIS, Geospatial, Remote Sensing, earth observation and digital geography
PostgreSQL - Listen and Notify Clients In Real Time

Episode 205 · Season 1

PostgreSQL - Listen and Notify Clients In Real Time

The MapScaping Podcast - GIS, Geospatial, Remote Sensing, earth observation and digital geography

26:28

About this episode

The promise of digital mapping is to provide a shared and real-time view of the state of the underlying system.

pg_eventserv is a free and open-source component that helps fulfill the promise of real-time event modeling and shared views in PostgreSQL.
By connecting to PostgreSQL and listening on specified channels, pg_eventserv captures database notifications and forwards them to web clients, enabling real-time updates and synchronization of data displayed on maps or other web interfaces.

pg_eventserv does one thing and one thing only: take events generated by the PostgreSQL NOTIFY command and passes the payload along to waiting WebSockets clients.

pg_eventserv is free and easy to install and you can find it here: https://github.com/CrunchyData/pg_eventserv
What this means is that any client can watch for notifications and update as changes in the database happen.
Real-time data!
Here is a link to a Youtube video demonstration of pg_eventserv in action!
https://youtu.be/UakRtYmoWow 
I will let Paul Ramsey the creator of pg_eventserv explain all this in more detail in this episode. 
If you want to reach out to Paul the best place to do that is http://blog.cleverelephant.ca/ 
Or if you want to listen to previous episodes with Paul you might find these interesting
Raster in the database?
https://mapscaping.com/podcast/rasters-in-a-database/
Dynamic Vector Tiles Straight From The Database
https://mapscaping.com/podcast/dynamic-vector-tiles-straight-from-the-database/
Spatial SQL- GIS Without The GIS
https://mapscaping.com/podcast/spatial-sql-gis-without-the-gis/
 
also ...  If you are interested in spatial databases at scale ... you might find this episode interesting
https://mapscaping.com/podcast/distributing-geospatial-data/
 
 
Some more episodes you might enjoy
 
ESRI, GIS careers, Geospatial Data Science 
QGIS, Geospatial Python, ArcGIS Pro
Google Maps, Geomatics, Cartography
Location Intelligence, Mapping

More from The MapScaping Podcast - GIS, Geospatial, Remote Sensing, earth observation and digital geography

274. Can I Ride

It’s never been easier to build a geospatial app. Getting people to discover it, use it, and pay for it? That’s still the hard part. CanIRide.app started with a simple frustration: driving to a mounta…

33m

Agentic Coding for GIS People with Ujaval Gandhi What can you actually do with AI coding agents if you're a GIS professional who doesn't write code? And where do you start? Ujaval Gandhi spent 15 year…

49m

High-Precision Location for Everything That Moves GPS gets you to the right street. Point One gets you to the right door, down to one or two centimeters. In this episode, I talk with Aaron, founder an…

41m

Cloud-Native Geospatial for Small Teams: How the Utah Geological Survey Did It What happens when a small, technical team at a state agency decides to go cloud native? They don't have terabytes of sate…

37m