# When Does Extracting a Module Into a Microservice Earn Its Cost?

> Compare running Orbit's modules inside one .NET 11 host with System.Threading.Channels + PostgreSQL Outbox/Inbox against extracting fulfillment behind an external message broker using identical cancellation and outage workloads.

Canonical: https://modularmonolith.com/case-studies/module-extraction/

## Summary of Operational Findings

- **In-process Modular Monolith (`Orbit.Common.EventBus` + PostgreSQL Outbox/Inbox)**: One deployment unit, sub-10ms `OutboxWakeupSignal` relay, zero broker infrastructure, single-hop W3C trace continuity, and atomic per-schema backups.
- **Extracted Service + Durable Broker (NATS JetStream / RabbitMQ)**: Independent process restart and deployment cadence, at the cost of a two-stage acknowledgement gap (producer outbox -> broker -> consumer inbox), cross-service contract versioning, and distributed operational ownership.
- **Decision Rule**: Keep modules inside one deployable host until independent release velocity, distinct compute scaling profiles, or hard fault-isolation SLOs outweigh broker and operational overhead.
