GraalVM in action: Building a Polyglot Rule Engine for Dynamic Business Logic
summary
Picnic describes a Java backend that embeds GraalVM polyglot to let analysts write rules in JavaScript or Python, loading source from GitHub, mapping Java DTOs via Jackson and Graal proxies, and routing events from Rabbit/Kafka through a rule router. The system records 200 rules and runs about 37 million evaluations/day producing ~2 million actions/day, uses a dry-run and CI-tested suites, and gates declared commands for safety via a Java-side validator and context builder.
AI-written summary · about
chapters (17)
- 0:00Introduction to GraalVM
- 1:11Current feature delivery process
- 4:22Ideal business feature workflow
- 6:25Solution space for rule engine
- 9:18Choosing GraalVM polyglot engine
- 10:42Real use case demonstration
- 13:57Rule engine implementation process
- 15:02End-to-end rule execution flow
- 17:55Java event translation layer
- 20:04Retrieving additional context
- 21:07Applying business actions
- 24:21Safety and guardrails
- 25:24Cheese paper incident lessons
- 28:15Testing and monitoring rules
- 30:00Business operator achievements
- 32:06Rule engine performance metrics
- 33:25Q&A session
