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".
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