Projects tigase _server server-core Issues #99
Simplified PubSub as a basic component API (#99)
Closed
Artur Hefczyc opened 1 decade ago
Due Date
2015-08-31

This would be very simplified PubSub implementation without a possibility to create new nodes. There will be a set of predefined nodes signaling events like user login/logout, presence status, perhaps some other events. Interested parties would be able to subscribe to these nodes to receive notifications. Something like current presence forwarding feature, but exposed via PubSub.

tom quas commented 1 decade ago

This is exactly what I've been looking for. Timing is excellent.

Artur Hefczyc commented 1 decade ago

I am glad you like it. This was inspired by one of the user's comments: http://www.tigase.org/content/presence-forwarding-tigase-users-presence-website#comment-4577

However, even though this is high on the TODO list, it is planed for next version, so it won't be available soon.

Artur Hefczyc commented 1 decade ago

The idea for this has changed. Now we are going to make every Tigase component a simple PubSub component, similarly to scripting support it will be a basic component API available to all components.

Using this API, an internal component plugins or elements will be able to register as PubSub nodes for this component. This will allow for a wide applications, such as server-level events notification to any given destination, possibly clustering support can be based on this as well.

tom quas commented 1 decade ago

i really like how this idea developed. i'm currently operating a MUC-based backend which i want to migrate to one based on PubSub. my motivation: MUC rooms live on a single node in the cluster, whereas pubsub nodes can be persisted and therefore easily distributed to several nodes in a cluster.

my original idea circled around implementing this on top of redis -- redis offers excellent ways to replicate data, and it will only be better with the upcoming 2.8 release. i'm not a big fan of investing time and effort in replicating SQL databases. i understand tigase comes a long way, but maybe it's time to provide additional support for these kinds of backends? just a thought...

back to this ticket: i'd love to see support in that new API which easily allows me to register my own nodes from my components.

Artur Hefczyc commented 1 decade ago

This will be implemented as part of the new component framework.

Artur Hefczyc commented 10 years ago

I think this is what you call evenBus now. Please update the ticket with some progress and pointers.

Bartosz Małkowski commented 10 years ago

We (WE ALL!) have to define some interesting ;-) events in Tigase Server and start to publishing it.

We have to make tests of dEventBus in real environment, to find and remove bottlenecks.

Still TODO:

support for standalone components.

Artur Hefczyc commented 10 years ago

Bartosz Malkowski wrote:

We (WE ALL!) have to define some interesting ;-) events in Tigase Server and start to publishing it.

Indeed, I have plenty of ideas (clustering could/should be based on this), publishing SM events like: new user registered, user logged in, changes online status, etc.... Tigase monitor events - detected high CPU, high memory usage, some feature malfunction, etc....

We have to make tests of dEventBus in real environment, to find and remove bottlenecks.

Indeed. I would start with Tigase Monitor. It is the least critical and practically non-existed. So there is no rewriting code, we just have to write planned functionality and use event-bus. I do not expect a high load here so impact would be low.

Also I would really like to add support for it in the SM, ideally each plugin should be able to publish events. This would put a significant load on eventbus so it would be a good performance verification.

However, publishing is relatively easy, subscribing and consuming notifications is more interesting. But this would be the clustering code - both publishing and subscribing - ultimate test for performance and reliability.

Still TODO:

support for standalone components.

Well one more TODO:

We need documentation for evenbus so we know how to use it.

Artur Hefczyc commented 10 years ago

Bartosz, please update the due date. If the due date is beyond the end of Jan 2015, move this task for next version.

Artur Hefczyc commented 9 years ago

Bartosz, what is the status of the task? Is it implemented and available for 7.1 version?

Bartosz Małkowski commented 9 years ago

Works fine. Implemented everything planned except for support, except for support for external components.

Artur Hefczyc commented 9 years ago

Add documentation page about this new stuff and close the ticket.

Daniel Wisnewski commented 9 years ago

I'll combine your document with mine %bmalkow should be uploaded when new documentation package tonight.

Bartosz Małkowski commented 9 years ago

OK %daniel

Fix and improve my documents, please :-)

issue 1 of 1
Type
Task
Priority
Major
Assignee
RedmineID
478
Version
tigase-server-7.1.0
Estimation
80h
Spent time
387h
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#99
Please wait...
Page is in error, reload to recover