APPLICATION ARCHITECTURE / REAL-TIME
One Core. Endless Possibilities.
Complex rules shouldn't mean complicated software.
In plain terms One set of rules behind your web and mobile apps, so a change is made once instead of three times.
Explore how extensible logic engines, shared application architecture, and real-time synchronization can power sophisticated experiences across platforms without rebuilding everything from scratch.
Engineering experienceAPPLICATION ARCHITECTURE
- Focus
- Cross-platform systems · Rules engines
- Sheet
- D-201
- Challenge
- Keep complex product rules consistent across web, mobile and changing variants.
- Engineering decision
- Separate a typed rules engine from the interface, with ordered events for recovery and replay.
- What this demonstrates
- Shared behavior, explicit platform boundaries and testable state management.
Engineering experience: a generic description of a class of problem, drawn from hands-on engineering work. Not a Veyrok client engagement.
The challenge
Rules vary by mode, region and product line, yet the experience has to feel like one system. When that logic lives in screens, every new variant becomes a regression risk across every platform.
Why it gets hard
Rules leak into the interface
When business logic lives in components, each platform re-implements it slightly differently, and the differences only surface in production.
State has to survive reality
Interrupted sessions, reconnects, corrections and undo need a model of what happened, not only what is on screen right now.
Platforms drift apart
Separate codebases for web, mobile and native modules diverge quietly until a fix on one surface breaks another.
Our approach
Treat the rules as a product of their own: a typed, interface-independent engine whose variants are expressed as configuration and strategies. Surfaces subscribe to its state, and native modules attach only where a platform genuinely demands it. Events are recorded in order so state can be rebuilt, corrected or replayed.
How it connects
- Rules enginePure, typed logic with no interface dependency.
- Variant layerConfiguration and strategies per rule set.
- State storeOrdered event log plus derived state.
- Sync layerQueued, ordered, reconnect-aware delivery.
- Surface adaptersWeb, mobile and native modules on one contract.
Trade-offs
| Decision | What it buys | What it costs |
|---|---|---|
| Shared engine vs per-platform logic | One behaviour and one test suite. | Stricter boundaries and more upfront modelling. |
| Event log vs snapshot state | Undo, replay and auditability. | More storage and replay logic to maintain. |
| Native modules vs cross-platform only | Access to platform capabilities such as streaming and camera. | Platform-specific maintenance. |
Real-world constraints
- Offline and unreliable networks
- Release cadence across app stores
- Wide device performance range
- Accessibility and localisation on every surface
Solution possibilities
Facing a similar challenge?
Complex rules shouldn't mean complicated software.