alfetahe / process-hub

Distributed processes manager and global process registry
GNU General Public License v3.0
62 stars 2 forks source link

Dynamic process #3

Closed sleipnir closed 2 months ago

sleipnir commented 2 months ago

Hello, first I would like to congratulate you on the excellent library. Not only in terms of the library but also for the excellent source code.

My question is whether it would be possible to start a process dynamically with ProcessHub. The use case would be to be able to start processes at any time during the execution of the program, that is, at runtime, not compile time. Example: the application receives a user request and we create a process with the user id as part of its identifier. Currently this would be achieved in Elixir using a DynamicSupervisor. Would this be possible with ProcessHub?

Thanks!

alfetahe commented 2 months ago

Yes, this is possible. In fact, ProcessHub is designed this way. The system expects processes to come and go during runtime.

And thank you for your feedback!

sleipnir commented 2 months ago

Thank you @alfetahe