“What the fuck are you talking about?”: The story of NodeTilesisland94.org2 points·by sideofbacon·4년 전·0 comments
sideofbacon·10개월 전·discussWho? Everyone I recognize is continuing to contribute. https://github.com/rubygems/rubygems/graphs/contributors?fro...
sideofbacon·3년 전·discussI'm the GoodJob author. Here's the class that is responsible for implementing Postgres's LISTEN/NOTIFY functionality in GoodJob:https://github.com/bensheldon/good_job/blob/10e9d9b714a668dc...That's heavily inspired by Rail's Action Cable (websockets) Adapter for Postgres, which is a bit simpler and easier to understand:https://github.com/rails/rails/blob/be287ac0d5000e667510faba...Briefly, it spins up a background thread with a dedicated database connection and makes a blocking Postgres LISTEN query until results are returned, and then it forwards the result to other subscribing objects.