Built on Rialto and Fabrio
Stratastax is not written by hand from top to bottom. Its services and its app are generated from a single contract, which describes the data, the operations and the rules once, in one place. Two projects make that possible.
Rialto: the contract
Section titled “Rialto: the contract”Rialto is an open specification for contract-driven applications. A Rialto contract describes the types, the storage, the operations and the views of an application, and generators in any language turn it into working code. The contract of Stratastax lives in the engine, with one folder per domain, as described under Architecture.
Because the contract is the single source of truth, the server and the clients can never disagree about what a match or a player is. When the contract changes, everything that is generated from it changes with it.
Fabrio: the building blocks
Section titled “Fabrio: the building blocks”Fabrio is the framework on top of Rialto. From the same contract, it generates Kotlin services on Quarkus and Flutter clients. Stratastax uses Fabrio for both ends: the engine on the server, and the views and data access of the app.
Why this matters for Stratastax
Section titled “Why this matters for Stratastax”Stratastax has a rich domain, with matches, players who may or may not have an account yet, communities, privacy settings and claims on past matches. Describing that once, in a contract, keeps the rules consistent everywhere they apply. It also means that the work on Stratastax feeds back into Rialto and Fabrio: whenever Stratastax needs something the contract cannot yet express, that becomes a proposal for the specification.