Skip to content

Comment on What MongoDB got rightparent

Comments

Good question :-)

You can do as ddorian43 explained, by including a payload in your notification (using JSON or another format).

Or you can do as you suggested and query the database to fetch more information about the change.

Apart LISTEN/NOTIFY, which is a very powerful feature, PostgreSQL also provides "logical decoding" which solves problems similar to the ones solved by oplog tailing.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.