Unleash / unleash-proxy

Unleash Proxy is used to safely integrate frontend application with Unleash in a secure and scaleable way.
https://docs.getunleash.io/sdks/unleash-proxy
Apache License 2.0
48 stars 42 forks source link

fix: new client mode vs singleton client mode #139

Closed kwasniew closed 1 year ago

kwasniew commented 1 year ago

About the changes

Adding new client mode in addition to the singleton client mode we had before - it has to be explicitly asked for in the config.

Following expand-contract pattern to have both modes in a transitional period. Once we test that the "new mode" that new ups unleash instance works in our context we can remove the singleton mode. The "new mode" dependency graph is a copy of the singleton dependency graph with "initialize" replaced with "new Unleash"

If you feel like this extra level of safety is not needed we can do straight to the "new mode".

Important files

Discussion points