6 ms·
Pubsub.io - a query based message hub. End of the channel tyranny now
- mirrorskin 15y agoSaw the presentation on nodecamp.eu last month, it's really cool stuff. Great you finally made it available to the public.
- barighona 15y agohttp://onlinepctvlink.blogspot.com/2011/07/nrl-rugby-st-george-dragons-vs-sharks.html http://onlinepctvlink.blogspot.com/2011/07/nrl-rugby-st-geor...
- ianjorgensen 15y agoThanks!, it feels good to be out there.
- benfle 15y agoHow complex would it be to execute a javascript function callback against each published document on the hub instead of a query and return the document to the subscriber if the function returns true?
- ianjorgensen 15y agoNot hard at all. We actually had that in early versions but removed it because it's really hard to optimize against functions, and you easily break the hub by injecting long running loops. Plus queries are the power of pubsub.io. Queries can be indexed and compiled on the fly, so hubs scale very well. If you really need funcions, you can fork the project and I can point you to how to add them.
- jedschmidt 15y agoI'd love to see functions too, and am not sure your concerns are necessarily dealbreakers. Optimization should be easier if you use something like node-burrito for the low hanging fruit, and node.js developers are already aware that long synchronous loops should be avoided in a single-threaded environment.
- ianjorgensen 15y agoI think you convinced us to give functions a second look, as long as we can have a good story for auth, i can't see why we shouldn't add them, given the right optimizations are in place. They could be very powerful. https://github.com/pubsubio/pubsub-hub/issues/3 https://github.com/pubsubio/pubsub-hub/issues/3
- bumi 15y agoafter hearing about pubsub.io at nodecamp.eu I'm totally excited to see it in public now.
- checker22 15y agoCan someone help me understand -- is this a CEP for js? Edit: or rather: CEP + message queue?
- ianjorgensen 15y agoIts not a message queue, and although its only for js now, it meant to be for everybody. But i dont know what CEP is. Something similar?
- checker22 15y agoBy CEP I mean something like esper: http://esper.codehaus.org/tutorials/solution_patterns/solution_patterns.html http://esper.codehaus.org/tutorials/solution_patterns/soluti...
- ianjorgensen 15y agoThat is very cool, thanks for the link. And yes the main idea is very similar to that.