Modulith economics
A modular monolith does not fail because modules can't be drawn. It fails on safe composition inside one deployable — modules still have to coordinate through events, lifecycle, state changes, ordering rules and side effects. That coordination layer is the integration cost.
Spring Modulith helps you define module boundaries in a modular monolith. Fluxtion addresses the harder part — the event-driven coordination inside those boundaries: how modules exchange events, preserve ordering, trigger dependent logic, and produce an auditable execution trace. The two are complementary: Spring Modulith structures the modules; Fluxtion makes the coordination between them generated, deterministic and auditable.
Integration cost is paid once by the supplier, not repeatedly by every consumer.
In conventional event-driven systems the consumer pays the integration cost every time — understand the component, wire it into callbacks and schedulers, preserve ordering, connect lifecycle, handle propagation, add audit hooks, test the composed behaviour, and repeat for every use case.
With inferred orchestration, the supplier attaches the integration semantics to the component itself — event handlers, triggers, dependencies, lifecycle, exported services, metadata. The compiler infers the orchestration from that structure. The reusable unit is not just a Java component; it is a component with its orchestration metadata attached.
| Integration cost | Traditional | Inferred orchestration |
|---|---|---|
| Component authoring | supplier writes logic | supplier writes logic + metadata |
| Integration | consumer hand-wires, repeatedly | compiler infers from metadata + graph |
| Marginal cost per consumer | high | near-zero (if metadata is correct) |
| Reliability | consumer's integration skill | verified supplier metadata + generated orchestration |
| Audit / replay | bolted on later | supported by the generated processor structure |
The reliability of composing third-party components rests on the metadata being true. That is the same asset as the audit story: the generated code and replay evidence let those metadata claims be tested rather than trusted. Composition is made explicit, generated, testable, auditable and replayable.
The first home for supplier-paid integration is an internal platform. A central team ships approved, "golden" components — pricing, risk checks, eligibility, validation, monitoring, AI guardrails, regulatory controls — with their orchestration metadata attached. Product teams compose them into one deterministic, auditable processor without rebuilding the coordination layer each time. One buyer, no two-sided cold-start, governance built in.
A central team supplies approved pricing, eligibility, risk and audit components — each carrying its event handlers, dependencies and lifecycle metadata. A product team composes them into one generated processor, instead of hand-wiring callbacks and ordering rules. The composition is testable, auditable, and replayable from its input events.
A cross-organisation marketplace — where buyers purchase composable, auditable capabilities rather than isolated libraries — is the expansion of the same idea, not the entry point.
Write the logic once. Attach the orchestration metadata once. Compose it many times.
modulith economics → regulated proof → audit / replay evidence.