top | item 2777378

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

33 points| ianjorgensen | 14 years ago |pubsub.io | reply

11 comments

order
[+] benfle|14 years ago|reply
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?
[+] ianjorgensen|14 years ago|reply
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.

[+] checker22|14 years ago|reply
Can someone help me understand -- is this a CEP for js?

Edit: or rather: CEP + message queue?

[+] ianjorgensen|14 years ago|reply
Its 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?
[+] mirrorskin|14 years ago|reply
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|reply
after hearing about pubsub.io at nodecamp.eu I'm totally excited to see it in public now.