⚖ Compare news

Put up to three stories side by side. Pick IDs from any article URL: /compare?id=123&id=456

eShop: запилить модульный монолит. Часть 2

habrahabr.ru ·Russian Federation · world
Words
90
Chars
554
AI summary
Yes
Full story

Part 2 of the eShop modular monolith work follows an earlier move that put seven services into a single process, eliminating network calls between them. That change cut memory use by about 3.5 times, while code inside the modules stayed as it was: four databases, RabbitMQ between in-process neighbors, and MediatR in orders. This part turns to the internals, starting with collapsing four DbContexts into one and checking what bugs appear. It also covers removing the bus and MediatR.

В первой части семь сервисов eShop переехали в один процесс и перестали ходить друг к другу по сети. Памяти стало уходить в три с половиной раза меньше, а код внутри модулей остался каким был: четыре базы, RabbitMQ между соседями по процессу, MediatR в заказах. В этой части разбираемся с тем, что внутри. Сворачиваем четыре DbContext в один, смотрим какие баги после этого вылезли, убираем шину и MediatR и считаем что осталось. Это шестая статья по мотивам моего доклада «Модульность без микросервисов в ASP.NET из коробки» на DotNext 2026 Читать далее

Open article