kaffe icon indicating copy to clipboard operation
kaffe copied to clipboard

implement unsubscribing from a topic. And getting current topic

Open dams opened this issue 7 years ago • 7 comments

dams avatar Jan 19 '18 14:01 dams

ping ?

dams avatar Apr 03 '18 21:04 dams

Any progress ?

dams avatar Jun 01 '18 08:06 dams

@dams This doesn't quite work. It leaves orphaned processes for the unsubscribed topic. This can be seen using :observer.

Looking more closely now.

objectuser avatar Jun 04 '18 16:06 objectuser

It looks like the subscribers and workers need to be terminated, so I think this is a bit more complicated.

objectuser avatar Jun 05 '18 13:06 objectuser

Ah that's why I also saw strange behaviours... Don't we have a hook to these subscribers and workers ?

dams avatar Jun 05 '18 13:06 dams

Yes, Kaffe.GroupMember knows all the subscribers and Kaffe.WorkerManager has a table of the workers.

I'm not sure the supervision tree is optimized for shutting them down, so it might be a bit more manual.

objectuser avatar Jun 05 '18 13:06 objectuser

I don't think it's a problem if it requires the user to write some code to properly shut down the subscribers/workers. But it would be g reat to at least document what to do when shutting down a consumer

dams avatar Jun 05 '18 14:06 dams