clamp-orchestrator / clamp-core

A microservices flow orchestrator and workflow manager.
https://clamp-orchestrator.github.io/clamp-orchestrator/
MIT License
9 stars 4 forks source link

Replace init function initialisation with explicit initialisation #99

Open sivachandran opened 3 years ago

sivachandran commented 3 years ago

Various components of Clamp are initialised through init functions. In Go, initialisation through init function is generally discouraged and used only for certain special cases like loading DB driver. Moreover init function based initialisation order is indeterministic and difficult to troubleshoot if any of the initialisation fails. So, we should replace init function based initialisation with explicit initialisation.