Live data from Hacker News

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

pubsub.io

1–10 of 13 posts

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

#5
post #3

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?

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.

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

#9

Can someone help me understand -- is this a CEP for js? Edit: or rather: CEP + message queue?

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?

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

#10

Can someone help me understand -- is this a CEP for js? Edit: or rather: CEP + message queue?

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?

By CEP I mean something like esper: http://esper.codehaus.org/tutorials/solution_patterns/soluti...
Post reply on HN