Skip to content

Instantly share code, notes, and snippets.

@danidee10
danidee10 / .Title
Created January 22, 2018 02:54 — forked from varver/.Title
Using MongoDB in golang with mgo
Using MongoDB in golang with mgo
@danidee10
danidee10 / README.md
Created October 23, 2016 13:22 — forked from quiver/README.md
Who says PostgreSQL can't Pub/Sub like Redis?

Pub/Sub pattern with PostgreSQL's LISTEN/NOTIFY command

This is a simple chat-like program using pub-sub pattern, backed by PostgreSQL's LISTEN/NOTIFY command.

Publish

publish message to foo channel from user nickname.

$ python pub.py foo nickname
PUBLISH to channel #foo