feature flag/toggle via FFLIB? #384
-
Is there a standard way to implement feature toggling with the Apex Enterprise Patterns? Some feature-toggling is very granular, even controlling lines within a method. I think that is rightfully out of reach here (correct me if I'm wrong). What I'm looking for is infrastructure to help with BranchByAbstraction so that the application can opt into different implementations based on flags (probably custom metadata). One thought is to add flag logic into the Application.ServiceFactory. In the examples, that code typically just implements a map.get to deliver back the correct implementation class. Would it be reasonable to add code to look at flags that would help govern which of several implementations to instantiate (eg, dev, qa, production, alpha, beta, etc)? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You should give AT4DX a look -- there is a presentation linked from the wiki that is a good overview of the project |
Beta Was this translation helpful? Give feedback.
-
You can also have a look at fflib-apex-extensions, which is kinda lightweight version of AT4DX which also includes a lightweight force-di principle but then focused only on the separations of concerns. |
Beta Was this translation helpful? Give feedback.
You can also have a look at fflib-apex-extensions, which is kinda lightweight version of AT4DX which also includes a lightweight force-di principle but then focused only on the separations of concerns.