Module Code Organization

Learn efficient module code organization with protocol buffer APIs, composition root files, and internal packages to prevent unintended imports.

Each of the modules that makes up our application exposes a protocol buffer API and a small module file that contains the composition root for the module code. The modules also have their internal packages to keep unintentional imports from being made between the modules.

Get hands-on with 1400+ tech skills courses.