Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 821 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 821 Bytes

go-postgres-sockets

https://sockets.bebo.dev (Google Cloud Platform k8s hosted)

A proof of concept Go application that demonstrates the use of postgres NOTIFY (plpgsql pg_notify function) and LISTEN (Go postgres package *pq.Listener) in conjunction with https://github.com/gorilla/websocket.

In this POC, data changes applied within a postgres db table result in Go listening code receiving notification of the data change and the data change then broadcast to connected websocket clients.

run / build

go run cmd/go-postgres-sockets main.go
go build cmd/go-postgres-sockets main.go

video

files