Settings

Theme

Pubsub.io - a query based message hub. End of the channel tyranny now

pubsub.io

33 points by ianjorgensen 14 years ago · 12 comments

Reader

benfle 14 years ago

How 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?

  • ianjorgensenOP 14 years ago

    Not 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 14 years ago

      I'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.

checker22 14 years ago

Can someone help me understand -- is this a CEP for js?

Edit: or rather: CEP + message queue?

mirrorskin 14 years ago

Saw the presentation on nodecamp.eu last month, it's really cool stuff. Great you finally made it available to the public.

bumi 14 years ago

after hearing about pubsub.io at nodecamp.eu I'm totally excited to see it in public now.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection