gorules / zen

Open-source Business Rules Engine for your Rust, NodeJS, Python or Go applications.
https://gorules.io
MIT License
770 stars 74 forks source link

feat: improve nodejs bindings #145

Closed stefan-gorules closed 5 months ago

stefan-gorules commented 5 months ago

Add new class ZenDecisionContent in Node.js and improve binding ergonomics.

brez commented 5 months ago

Does this allow for in memory decisions? ie. the loader does read the file off disk with each evaluate ? or maybe I'm reading it wrong?

stefan-gorules commented 5 months ago

Hi @brez,

Yes this allows for more control when it comes to data sharing between NodeJS and Rust (and hence easier caching for in-memory loader).

This is also possible through caching ZenDecision, but usually ZenDecisionContent is more appropriate.

brez commented 5 months ago

Awesome - thanks