golemcloud / golem

Golem is an open source durable computing platform that makes it easy to build and deploy highly reliable distributed systems.
https://learn.golem.cloud/
Apache License 2.0
530 stars 59 forks source link

Optimize ephemeral worker RPC #936

Closed vigoo closed 1 month ago

vigoo commented 2 months ago

The RPC implementation currently checks if the worker belongs to a shard assigned to the current worker executor and based on that either directly invokes it, or goes through the worker gateway.

For ephemeral workers we can always do the direct invocation. So the RPC call needs to check the cached component metadata to know if the target component is ephemeral or not.