Postgres LISTEN/NOTIFY does not scale

28 points by fanf


adriano

While I think this advice was well intentioned, please do not simply accept it as fact. The blanket statement made by the post title is the sort of thing that forms cultish followings. The reality is more nuanced. NOTIFY can “scale” well, but you don’t want to NOTIFY in large transaction blocks. NOTIFY independently from complex application logic, and you’re unlikely to experience scaling to many concurrent writers.

sjamaan

This is good to know! I’ve used LISTEN/NOTIFY to good effect many times in the past, but this will make me more wary of using it in high concurrency situations.