Git Product home page Git Product logo

ruleengine's Introduction

RuleEngine

Discussion Questions:

Q1. Briefly describe the conceptual approach you chose! What are the trade-offs? A. I have created APIs for performing CRUD(Create, Retrieve, Update, Delete) operations on rules. There is a sepearte API provided for filtering data which takes Rule Ids and filter the data which violates the rule. Trade off is instead of having normalised database(Keeping seperate table for storing operations), I decided to keep opeartions in the same table as rules, so that extra database call will be saved.

Q2. What's the runtime performance? What is the complexity? Where are the bottlenecks? A. For the sample data(raw_signal.json) provided in the question, the latency is 30- 50ms with three rules applied. The complexity is O(N) where N is the number of rows of data.The major bottleneck I faced is defining the unified operations for all the value types.

Q3.If you had more time, what improvements would you make, and in what order of priority? A. Firstly, I would have liked to introduce the cache service to it so that all the old rules will be stored in cache and DB calls will be made only for new rules. Next I would introduce a script for taking the latest code from Github and building a Docker image using Jenkins so that deployment will be fast.

ruleengine's People

Contributors

karthikpothineni avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.