Client-Side Constraint Evaluation for Salesforce Revenue Cloud (RCA) Configurators
“When every configurator click pays a server round-trip, move evaluation to the client - but do it with a real language runtime, not duplicated if-statements.”
An exhibit, not an article
Seven layers, each with something to touch. Start anywhere - the path remembers where you are.
Read the exhibit contract, then pick a layer.
“You are about to watch a language come alive inside the browser - compiled, not called.”
This exhibit traces a small constraint-language compiler: declarative product rules enter as text, a hand-written pipeline turns them into a typed tree, and a deterministic evaluator runs them in browser memory on two runtimes that must never disagree.
It is independent weekend work against a self-defined grammar, informed only by public documentation patterns. The verification harness is the real artifact - thousands of generated cases asserting identical outcomes on both targets.
- •Inspect each compiler stage to see what it guarantees
- •Step one rule from source text to evaluated result
- •Decide between generating code and interpreting trees
- •Break the grammar, then watch where each break lands
“A well-architected system makes the right thing easier, and the wrong thing harder.”