Menu

Running MongoDB-style JSON rules in memory across C, Ruby, Python, Go, and JS
πŸ“°

Running MongoDB-style JSON rules in memory across C, Ruby, Python, Go, and JS

DEV Community: mongodbΒ·Frank LiaoΒ·5 days ago
#BHzGDFtW
#devtomongodb#devto#dev#mongory#rule
Long article (1108 words) β€” no AI summary yet.
Reading 0:00
15s threshold

A recurring problem in multi-service backends is storing user-defined filter rules in a database (feature flags, webhook routing, promotion eligibility, alert filters) and then evaluating those same rules in memory across different runtimes.

One service is in Ruby, a worker is in Go or Python, and the admin UI previews the rule in TypeScript before saving it. Without a shared matcher, teams either invent a custom JSON DSL and maintain three slightly different interpreters, or spin up a database round-trip for data that is already sitting in RAM.

Most developers already know MongoDB's query syntax ( $and , $or , $in , $elemMatch , dot paths).…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.