design-module-and-service-communication
Installation
SKILL.md
Designing ABP Module & Service Communication
Two building blocks cover almost all communication across a boundary in ABP — whether the boundary is between modules in a modular monolith (one process) or between microservices (separate processes). Pick per interaction, not per system — most solutions use both. Designing for module boundaries first is what lets a modular monolith later split into microservices with little communication rework: the distributed event bus and integration services run in-process today and swap to a broker/remote transport with little application-code change — though the split still adds remote auth, network-failure/timeout handling, and cross-service consistency to design for.
When to Use
- Deciding whether an interaction should be synchronous (needs an immediate answer) or asynchronous (fire-and-forget notification), between modules or between microservices.
- Publishing/subscribing to distributed events across a module or service boundary.
- Making cross-boundary events reliable and transactional with the outbox/inbox.
- Keeping event handlers idempotent against duplicate delivery.
- Sharing contracts (ETOs, integration DTOs) across a boundary without leaking domain entities.
- Designing a cross-module/service query or report without coupling to another module's internals.
When Not to Use
- The mechanics of exposing an
[IntegrationService]as an HTTP controller — use the expose-http-apis skill. - The mechanics of calling a remote service through client proxies — use the consume-remote-services skill.
- Running this communication over a Dapr sidecar / pub-sub — use the integrate-dapr-services skill.
- In-process background jobs and local (single-service) events — use the background-jobs-and-events skill.