brillout / telefunc

Remote Functions. Instead of API.
https://telefunc.com
MIT License
688 stars 31 forks source link

Several same-process Telefunc servers (e.g. microservice architecture) #83

Closed iSuslov closed 1 year ago

iSuslov commented 1 year ago

Hi, It would be nice to have the ability to use it in microservice architecture. Imagine you have master node, that orchestrates worker nodes located on remote hosts. It's nice to have telefunc involved to call remote functions in this case. As for now I think the only way to make it work is to isolate each telefunc singleton in a separate process which is not very convenient.

brillout commented 1 year ago

I agree having multiple Telefunc servers is important.

Although I'm thinking: isn't the whole idea of microservices to have several separate process in the first place?

I'm not sure I see the advantages of having several same-process Telefunc servers?

iSuslov commented 1 year ago

I've just realized that labeling it as "microservices" might have been overly ambitious. However, my specific scenario is situated within a field where one can effectively harness remote hardware without the need to concern oneself with communication intricacies. Imagine a node serving as the orchestrator, smoothly executing code on worker nodes.

brillout commented 1 year ago

I agree that'd be nice, but I think it's best we consider this out of scope for now: there are other tickets I consider higher priority.

That said, feel free to create precise feature requests if you believe they would help you while not requiring too many (breaking) changes from Telefunc's interface.