r/JavaProgramming • u/bigbossTn • Jul 29 '25
Built a lightweight Java rule engine (LWRE) – looking for feedback from the community
Hi ,
Over the last few months, I’ve been experimenting with building a lightweight Java rule engine called LWRE (Lightweight Rule Engine).
I enjoy working with tools like Drools and Easy Rules, but I often ran into trade-offs:
Drools: Powerful but heavy, harder to embed in small or cloud-native services.
Easy Rules: Lightweight, but missing features I needed like dependency handling and resilience.
So, I tried making something in between:
Readable DSL for defining business rules
Dependency-aware execution
Parallel execution when rules don’t depend on each other
Circuit breaker, retries, and timeouts for resilience
Dynamic compilation with Janino so rules can change at runtime
I’ve integrated it with CI/CD and SonarQube so it’s production-friendly, but I’m still refining it.
GitHub: https://github.com/HamdiGhassen/lwre
I’d love to hear:
Any feedback on the design or code structure
Use cases you think this could fit into
Ideas for improving the DSL or execution model
This is my first time sharing a Java project here, so I’m happy to answer any questions or go deeper into the internals if anyone’s curious.
Thanks for reading
Duplicates
opensource • u/bigbossTn • Jul 30 '25