The seven microservices of the eShop reference app are folded into modules that share a single process, using the FusionModules tooling. The author starts from measurements, shows the analyzer-assisted Program.cs move and verifies after each step that the composition stayed identical.
Key points
- Nine processes and four containers became two processes and three containers.
- Idle working set dropped from 1627 MB to 613 MB and threads from 443 to 120, with no CPU or e2e gain.
- A MOD0015 analyzer fix moves registration code into a Module.cs class created in the same project.
- dotnet modules inventory and compare report DI registration differences after every move.
- Webhooks required UseModuleRouting, while Identity auth, cookies and the event bus needed manual work.
- A single dotnet format run turned 204 types internal.
This summary was generated by the agent from the original post on Habr C# (ru). The full text and all rights belong to its author and publisher. Go to original