Rule Engine in Java using Generics | Tech Primers

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024

Комментарии • 37

  • @Itsarpitgupta
    @Itsarpitgupta 5 лет назад +4

    After watching this video i have implement this in 2 big projects. Thanks you very much for this video.

  • @tareksahalia
    @tareksahalia 2 года назад +1

    First Thank you so much for your great video. Second, I think this is nothing but polymorphism, you don't need to filter or match on anything, the JVM will understand what method it will execute based on the type of the POJO. Rule engines are mostly created to ensure the flexibility of rules regardless of the object types. in other words, adding more rules should be decoupled from the core code. Thank you.

  • @samuelvishesh
    @samuelvishesh 6 лет назад +4

    Awesome content, a intro to Drool and Spring Statemachine would be cool

  • @tjk6550
    @tjk6550 5 лет назад +7

    Just a thought.. iPhoneRule and AndroidPhoneRule naming would have been less confusing as they're implementing RuleI

    • @quenar
      @quenar 2 года назад

      It would be nice to get the update for that

  • @leelaprasadjagu3177
    @leelaprasadjagu3177 6 лет назад +3

    If possible can you please make a video on how frameworks will scan all the annotations that exist in the application at runtime(dynamically) in a cleaner way.
    I want to whether they will cache this annotation metadata or they will scan entire application on demand

  • @Itsarpitgupta
    @Itsarpitgupta 6 лет назад +1

    very good explanation..

  • @AJ-or5om
    @AJ-or5om 6 лет назад +1

    Good job, can you create a rate engine example?

    • @AJ-or5om
      @AJ-or5om 6 лет назад

      And whats the best design patterns to use with rule engine?

  • @AkilaUdarakasthuriarachchi
    @AkilaUdarakasthuriarachchi 4 года назад

    Hi can you do a session about Drools with Spring Boot

  • @aruna542
    @aruna542 5 лет назад

    Llooking for Rules engine with configurable way which is supports a spring boot way.

  • @ashishpatel9727
    @ashishpatel9727 5 лет назад +1

    Good video !!

  • @esakkisundar
    @esakkisundar 3 года назад

    Could you present a video on Clara Rule engine

  • @johnplayerks
    @johnplayerks 6 лет назад +1

    Nice, thanks!

  • @moustafa6006
    @moustafa6006 4 года назад

    What if instead of changing just one property in the rule we need to change doZens of properties? Should we implement a rule engine in each rule of the main rule engine?

  • @maxsjohn
    @maxsjohn 5 лет назад

    What is the significance of process() API why is it used?
    Can we create a new Instance and pass?

  • @koushik1258
    @koushik1258 5 лет назад

    Is it same as factory or statergy design pattern but just skiping if else part?

  • @quenar
    @quenar 2 года назад

    but does it comply with SOLID principles?

  • @mgundawar
    @mgundawar 4 года назад

    Great video and explanation.
    Is there a way to externalize the rules? (declarative way) so that no coding/compiling/deployment would be needed to add new rule. (rule can come from config/csv etc..like Drool)
    Any suggestions? I am wondering if to go for Drool or use Java Generics

  • @anupraj762
    @anupraj762 6 лет назад

    Good explanation .. if I have 200 rules , 200 interface and implementation ? Can you share your thoughts to overcome from this please please please?

    • @Makarand76
      @Makarand76 6 лет назад +2

      If you have 200 rules, create a singleton of implementation and load it as Map with Key as rule name and value as implementation object. Based on the rule to be used at runtime, you can load the rule from Map. This is in-memory storage but you need rules across multiple servers then one can go for external cache e.g. Redis. Does it answer your question?

    • @anupraj762
      @anupraj762 6 лет назад

      Makarand Parab thank you very much sir . Appreciated .

    • @konstantinthekonstantin
      @konstantinthekonstantin 4 года назад

      ​@@Makarand76 Hello! Could you please provide a simple example of this? I would be extremely appreciated
      .

    • @Makarand76
      @Makarand76 4 года назад

      @@konstantinthekonstantin example is use hashmaps
      Rule 1 key = addition and value is addition object which implements rules interface and has method calculate. This rules does the addition
      Rule 2 key = multiply and value is multiply object which implements rules interface and has method calculate. This rules does the multiplication.
      You can use runtime polymorphism to get the object using interface as reference

    • @konstantinthekonstantin
      @konstantinthekonstantin 4 года назад

      @@Makarand76 Thanks a lot!

  • @sujithg5873
    @sujithg5873 6 лет назад +1

    Nice video broi

  • @avdheshrajput2470
    @avdheshrajput2470 6 лет назад +1

    Hi, have you stopped designing architecture for any app..
    You have deleted paytm design app also

  • @sexysurd007
    @sexysurd007 6 лет назад +4

    Awesome video on Rule Engine..
    One question, is Drool similar to this concept?

    • @TechPrimers
      @TechPrimers  6 лет назад +1

      Yes similar. But you will write .DRL(drool file) for the rules

    • @sexysurd007
      @sexysurd007 6 лет назад +1

      Got you.. can you pls also plan to do a tutorial on Drool with Spring Microservice and Angular as an example..
      That will be awesome 👍

  • @blaxminarayanpatra7311
    @blaxminarayanpatra7311 6 лет назад +1

    bro can you tell which ide you use