Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Design Pattern for orchestration

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.

like image 326
Pankaj Avatar asked Oct 19 '25 03:10

Pankaj


1 Answers

Maybe the Chain of responsibility pattern might fit for this scenario.

like image 113
Oliver Avatar answered Oct 21 '25 17:10

Oliver



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!