I have three java component - ComponentA,
ComponentB,
ComponentC
. I want to orchestrate these component. There could be multiple combination (but in sequence) while executing these component for e.g. ComponentA,
-> ComponentB,
-> ComponentC
or ComponentA,
-> ComponentC
. Which pattern would be the best fit here ? Every component has their own functionality and doesn't depend on each other. I'm looking at mediator java pattern but not sure if this is good fit in this case.
Maybe the Chain of responsibility pattern might fit for this scenario.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With