Composition Root
Discover the composition root for assembling application components and synchronous communication via protocol buffers and gRPC APIs among modules.
We'll cover the following...
The internal design of each module may differ, but they all use the same pattern to start up. A composition root is part of an application where we bring the infrastructure, configuration, and application components together:
Press + to interact
The composition root is also where dependency injection takes place, and an application object graph will be constructed. For our modules, we will undertake the following actions:
Construct the Driven adapters.
Construct the application and inject the Driven adapters.
Construct the Driver adapters and inject the application and Driven adapters.
This snippet ...