build it as a independent standalone service but if you do that it's important that it's a passed rule that the rule engine only executes rules it doesn't query any database or back-end or anything for data it should look something like that this is request this is response you give in the the rule that it needs to execute you give him the data and then it executes the rule inhibit the response back and it should be in memory and it should be really fast as you see here it should really be a number of milliseconds the seconds that you can