Rule Engine in Java using Generics | Tech Primers

  Рет қаралды 40,290

Tech Primers

Tech Primers

Күн бұрын

Пікірлер: 37
@Itsarpitgupta
@Itsarpitgupta 5 жыл бұрын
After watching this video i have implement this in 2 big projects. Thanks you very much for this video.
@tareksahalia
@tareksahalia 2 жыл бұрын
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 жыл бұрын
Awesome content, a intro to Drool and Spring Statemachine would be cool
@leelaprasadjagu3177
@leelaprasadjagu3177 6 жыл бұрын
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
@tjk6550
@tjk6550 5 жыл бұрын
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
@quenar
@quenar 2 жыл бұрын
but does it comply with SOLID principles?
@esakkisundar
@esakkisundar 3 жыл бұрын
Could you present a video on Clara Rule engine
@koushik1258
@koushik1258 5 жыл бұрын
Is it same as factory or statergy design pattern but just skiping if else part?
@maxsjohn
@maxsjohn 5 жыл бұрын
What is the significance of process() API why is it used? Can we create a new Instance and pass?
@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?
@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 жыл бұрын
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!
@AkilaUdarakasthuriarachchi
@AkilaUdarakasthuriarachchi 4 жыл бұрын
Hi can you do a session about Drools with Spring Boot
@AJ-or5om
@AJ-or5om 6 жыл бұрын
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?
@johnplayerks
@johnplayerks 6 жыл бұрын
Nice, thanks!
@aruna542
@aruna542 5 жыл бұрын
Llooking for Rules engine with configurable way which is supports a spring boot way.
@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
@Itsarpitgupta
@Itsarpitgupta 6 жыл бұрын
very good explanation..
@ashishpatel9727
@ashishpatel9727 5 жыл бұрын
Good video !!
@avdheshrajput2470
@avdheshrajput2470 6 жыл бұрын
Hi, have you stopped designing architecture for any app.. You have deleted paytm design app also
@TechPrimers
@TechPrimers 6 жыл бұрын
No mate. Will upload with much cleaner solutions.
@avdheshrajput2470
@avdheshrajput2470 6 жыл бұрын
Tech Primers great. 👍 thank you
@rishikeshshukla3935
@rishikeshshukla3935 6 жыл бұрын
waiting for it
@blaxminarayanpatra7311
@blaxminarayanpatra7311 6 жыл бұрын
bro can you tell which ide you use
@TechPrimers
@TechPrimers 6 жыл бұрын
It's IntelliJ IDEA
@samuelvishesh
@samuelvishesh 6 жыл бұрын
And it rocks
@sujithg5873
@sujithg5873 6 жыл бұрын
Nice video broi
Generics in Java - Full Tutorial
20:08
Daily Code Buffer
Рет қаралды 28 М.
What are Business Rules? It's not this.
10:58
CodeOpinion
Рет қаралды 30 М.
The Rules Engine Design Pattern with C#
17:37
Spyros Katsios
Рет қаралды 12 М.
Java Reflection Explained - bɘniɒlqxƎ noiɟɔɘlʇɘЯ ɒvɒᒐ
20:07
Coding with John
Рет қаралды 188 М.
Microservices and Rules Engines - a blast from the past - Udi Dahan
52:48
Memoization Example in Java | Dynamic Programming | Tech Shots
11:48
Clarifying Rules Engines with Clara Rules - Mike Rodriguez
37:08
Rule Engine for Spring Boot
13:03
Gain Java Knowledge
Рет қаралды 878
JAVA DTO Pattern Tutorial | Simplify Your Code
19:12
Amigoscode
Рет қаралды 211 М.