~/talk

Rules Engine

TalkinUkrainianat Software Architecture fwdays'22 · on Saturday, 2022-09-24· [frontend-architecture]
links:none on file
slides:none on file

A rule-based discount engine replaces ad hoc ifs with a compiled in-memory rules session that evaluates order facts and emits discount facts (cashback, free delivery, promo codes) that the checkout applies. It is implemented with Clara Rules on Clojure, an admin JSON DSL that generates rules, Kafka to push rule updates, and live sessions swapped on config change. The system runs per-checkout at real load (2000 rps, 20k orders/day), with negligible latency in practice, and only minor UX issues around confusing hint text.

AI-written summary · about

  1. 0:00Introduction
  2. 1:07E-commerce discount problems
  3. 5:48What is a rules engine
  4. 8:17Facts in rules engine
  5. 10:03Rules syntax and structure
  6. 14:20Data aggregation in rules
  7. 16:52Cashback rule example
  8. 19:01Rule time constraints
  9. 20:50Discount rules engine usage
  10. 24:43Product page discount hints
  11. 26:09Admin panel setup
  12. 30:50Rules engine architecture
  13. 32:38Implementation results
  14. 34:49Hint problems and solutions
  15. 36:15Why it succeeded
  16. 37:41Resources
  17. 38:01Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.