curious if anyone has used the pub/sub functionali...
# cfml-general
m
curious if anyone has used the pub/sub functionality of Postgres with CFML?
s
I use postgres with cfml, however I have never tried the pub/sub features of postgres... I do see that there are some limitations with JDBC drivers not being able to receive asynchronous notifications though so my gut feeling is that it would not work.
m
thanks - just starting to explore now. And yeah, I've seen some possible jdbc issues. we'll see
s
I'd certainly be interested in your results if you can get it to work
m
fwiw I"m seeing the same thing - it seems like you need to implement polling to check for notifications: https://jdbc.postgresql.org/documentation/head/listennotify.html
doesn't seem hard. but if polling has to be implemented, I'm not sure if it's worth it
s
looks like you might have to implement something like Kafka then connect to that via coldfusion
s
The research i did with last years presto suggested pub/sub with postgres is more of a feature made to work with it vs being well made to do it
m
ahhh - good to know. I was trying to track down that preso actually, when I ran into some cfcasts issues, lol
s
šŸ˜›
well this recent post may be helpful, it sounds like it may be a more formidable option now • https://news.ycombinator.com/item?id=29599132 • https://webapp.io/blog/postgres-is-the-answer/
m
thanks! I'll check that out
s
and thats why i love open source šŸ™‚