restatedev / restate

Restate is the platform for building resilient applications that tolerate all infrastructure faults w/o the need for a PhD.
https://docs.restate.dev
Other
1.33k stars 33 forks source link

Metas -> workers configuration propagation #91

Closed slinkydeveloper closed 4 months ago

slinkydeveloper commented 1 year ago

We need to refine the mechanism for metas to propagate service configurations to workers.

slinkydeveloper commented 1 year ago

Some links:

slinkydeveloper commented 1 year ago

I'm gonna expand this issue with the details about the two proposals:

slinkydeveloper commented 1 year ago

01/03/23 discussion

There are essentially 2 sub-problems where the metas -> worker configuration propagation mechanism has user visible effects:

How the propagation physically happens, be it pull/push, tcp/http/grpc, is just an implementation detail, hidden behind some abstraction, such as LocalMeta or NodeMeta or something similar.

Worker-to-worker

Ingress

The ingress needs the service configuration for:

There are essentially two solutions here, both with their pros-cons:

It is conceivable that we support both solutions, and make this behaviour configurable.

slinkydeveloper commented 1 year ago

With the recent updates on retries, including #495, I think this discussion becomes much simpler: now we can let the resolution fail when there is a configuration misalignment between workers, and that error will simply be retried.

slinkydeveloper commented 4 months ago

@tillrohrmann seems i can close this now