S++Core systems, human-reviewable
ENGLISH EDITION · OCTOBER 15, 2026
ContentsComplete book

Chapter 11 — Minimum Service Granularity and Deployment Principles

© 2026 S++ project contributors. All rights reserved. Book copyright.

The minimum business service is a modeling boundary, not a process boundary. SPP defines that minimum before choosing where services execute.

Minimum Business Granularity

Service Minimum responsibility
Quantum A conserved change between a pair of quantum properties
Query, calculation, validation, ordinary update A defined operation on a role

A debit alone is not a complete quantum transfer; its counterpart is indispensable (Chapter 5). A role operation, such as querying Buyer or calculating an OrderLine amount, may use only some properties. A field accessor, multiplication or comparison is an expression inside that operation, not a smaller independent business service.

Calculation reuse and scenarios compose these units. Merging quantum requests does not change their underlying minimum responsibilities.

Role Granularity Does Not Determine Data Volume

A role query need not retrieve every property in its role-playing chain. Property usage in scenarios, calculations and validations can be collected at compilation to identify required facts. Quotation may need membership tier, eligibility may need status, and delivery may need address; unused customer data need not be loaded.

Request-level caches can avoid repeated reads within a scenario, and shared caches can reuse sufficiently stable facts across requests. APP/PHY mappings and freshness policies determine when such reuse is valid. Cached observations do not replace authoritative money or inventory settlement.

On-demand loading reduces data per read; caching reduces the number of reads. Neither requires splitting roles into property-level services. Appendix C13 and Part V develop these optimizations.

Deployment Granularity Is an Independent Choice

A process can host many independently defined services. Calculations and validations over prepared facts generally suit local execution. Queries may execute locally or remotely according to fact ownership, and independent queries can overlap. Quantum requests may be combined when their contracts permit it; independent ordinary saves follow the required settlement and preparation phases.

Separate deployment can be justified by scaling, resource isolation or team ownership. Co-location reduces communication and may simplify coordination without changing the logical service responsibilities.

Deployment Must Honor Transaction Boundaries

Petstore's develop environment hosts four domains in one process using LOCAL; testing separates customer, product and shop applications. The business model remains the same, but execution costs and commit capabilities differ.

Co-located services sharing a suitable transactional resource can coordinate quantum and ordinary changes in a local transaction. Separate resources or processes require supported coordination or explicitly modeled phased settlement and recovery. Co-location alone does not guarantee atomicity, and distribution alone does not provide a joint commit protocol.

Model at the defined minimum; deploy according to dependencies, capacity, communication cost and transaction guarantees. Fine-grained business expression need not entail fine-grained remote deployment.


Part Contents · Full Book Contents · Previous Chapter · Next Chapter