2 ms·
Could you give an example of how these are used? Do you mean things like "IF there's been [4] login attempts in the past [10] mins THEN deny this login attempt"
by psadri 5y ago
Could you give an example of how these are used? Do you mean things like "IF there's been [4] login attempts in the past [10] mins THEN deny this login attempt"?
- PaulHoule 5y agoYep, but production rules engines also work in asynchronous cases because they can keep a database of partially matched rules that get updated as new facts come in. In your case the rules engine would keep track of the login attempts and automatically expire the records once they are old enough that they won’t trigger any rules. It boggles my mind that nobody has tried making a JavaScript framework based on them; they would be particularly good for the cases where people get burned in React, such as when there are several pieces of information which go into a computation that updates the UI. Rather than having to implement updates for all the cases the compiler figures out all the ways in which a change could force a UI update and makes it happen.