Optimizing rulii
rulii 2.2.0 ran 1.4 million rules a second on one thread. 2.3.0 runs 8.1 million, and the rules do exactly what they did. Where the time was going, what changed, and what we measured and threw away.
rulii 2.2.0 ran 1.4 million rules a second on one thread. 2.3.0 runs 8.1 million, and the rules do exactly what they did. Where the time was going, what changed, and what we measured and threw away.
A faster engine with nothing to change in your rules, GraalJS context reuse, a flow-level exception handler that lets the flow continue, and a Spring integration where Bean Validation on rulii is opt-in and all 48 validators are XML elements.
A validation call costs a fraction of what it did: predefined constraints are checked directly, and a class with nothing else needs no engine around it. The annotations, the API and the violations are unchanged.
The bill of materials for the 2.3.0 line: rulii 2.3.0, rulii-spring 2.3.0, rulii-bean-validation 1.1.0 and rulii-explorer 1.2.0.
The explorer starts in an application on WebFlux without Spring MVC, a start-up warning is gone, and it is built against rulii 2.3.0 and rulii-spring 2.3.0.
Keeping the business rules apart from the rest of the code used to take discipline, planning and buy-in. Now it takes one instruction. The AI writes the code, and you keep the rules.
Bean Validation annotations cover the easy checks. The cross-field ones and the business rules are where they run out, and where a rule engine earns its place.
A bill of materials that pins the matching versions of rulii, rulii-spring, rulii-bean-validation and rulii-explorer. Import it once and leave the versions off.
Forked contexts for async work, local bindings, formal result types, Jakarta EL as a scripting language, eleven more validators, and a Spring integration that makes rulii the application's Bean Validation provider.
The first release: a Jakarta Bean Validation 3.1 provider that runs every constraint as a rulii rule, with @Validate, @Expr and @Bind for what annotations cannot say.