open-feature / ofep

A focal point for OpenFeature research, proposals and requests for comments
https://openfeature.dev
20 stars 15 forks source link

005-OFEP-flagd-update-subscribers #21

Closed james-milligan closed 1 year ago

james-milligan commented 2 years ago

Signed-off-by: James-Milligan james@omnant.co.uk

beeme1mr commented 2 years ago

This has a dependency on https://github.com/open-feature/spec/issues/77

AlexsJones commented 2 years ago

This is very interesting. I am thinking of how this might work in the flagD wide implementation.

My initial thoughts are:

Option 1. Perhaps the easiest start would be to acknowledge that we own the OpenAPI spec for flagD and it's not a 1:1 with the upstream spec. As such we could extend it to offer a /stream/register set of capabilities. This could do an HTTP upgrade in place to switch to a WS connection. The primary work would then be writing an interoperable layer for the grpc/stream back to WS.

image

Option 2.

Another thought would be to provide a unique API endpoint that avoids having to do an in-place upgrade, therefore removing SDK side work. This would mean that there are several ws:// protocol style comments around a tagged group of API endpoints for streaming.

toddbaert commented 1 year ago

@james-milligan is this still relevant given our current implementation and https://github.com/open-feature/ofep/pull/25?