Rule Engine in Java using Generics | Tech Primers

  Рет қаралды 39,375

Tech Primers

Tech Primers

Күн бұрын

This video covers on how to create a custom Rule Engine using Generics in Java
GitHub link for the example: github.com/TechPrimers/rule-e...
Website: techprimers.com
Slack Community: techprimers.slack.com
To get invite, drop a mail to info@techprimers.com
Twitter: / techprimers
Facebook: TechPrimers
GitHub: github.com/TechPrimers or techprimers.github.io/
Video Editing: iMovie
Background Music:
Hanvai
Dyalla
---------------------------------------------------------------
Disclaimer/Policy:
The content/views/opinions posted here are solely mine and the code samples created by me are open sourced.
You are free to use the code samples in Github after forking and you can modify it for your own use.
All the videos posted here copyrighted. You cannot re-distribute videos on this channel in other platforms.

Пікірлер: 37
@Itsarpitgupta
@Itsarpitgupta 5 жыл бұрын
After watching this video i have implement this in 2 big projects. Thanks you very much for this video.
@samuelvishesh
@samuelvishesh 6 жыл бұрын
Awesome content, a intro to Drool and Spring Statemachine would be cool
@tareksahalia
@tareksahalia Жыл бұрын
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.
@johnplayerks
@johnplayerks 6 жыл бұрын
Nice, thanks!
@Itsarpitgupta
@Itsarpitgupta 6 жыл бұрын
very good explanation..
@ashishpatel9727
@ashishpatel9727 5 жыл бұрын
Good video !!
@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
@sujithg5873
@sujithg5873 6 жыл бұрын
Nice video broi
@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?
@koushik1258
@koushik1258 5 жыл бұрын
Is it same as factory or statergy design pattern but just skiping if else part?
@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
@maxsjohn
@maxsjohn 5 жыл бұрын
What is the significance of process() API why is it used? Can we create a new Instance and pass?
@aruna542
@aruna542 4 жыл бұрын
Llooking for Rules engine with configurable way which is supports a spring boot way.
@sexysurd007
@sexysurd007 6 жыл бұрын
Awesome video on Rule Engine.. One question, is Drool similar to this concept?
@TechPrimers
@TechPrimers 6 жыл бұрын
Yes similar. But you will write .DRL(drool file) for the rules
@sexysurd007
@sexysurd007 6 жыл бұрын
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 👍
@esakkisundar
@esakkisundar 3 жыл бұрын
Could you present a video on Clara Rule engine
@AkilaUdarakasthuriarachchi
@AkilaUdarakasthuriarachchi 4 жыл бұрын
Hi can you do a session about Drools with Spring Boot
@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
@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?
@quenar
@quenar 2 жыл бұрын
but does it comply with SOLID principles?
@blaxminarayanpatra7311
@blaxminarayanpatra7311 6 жыл бұрын
bro can you tell which ide you use
@TechPrimers
@TechPrimers 6 жыл бұрын
It's IntelliJ IDEA
@samuelvishesh
@samuelvishesh 6 жыл бұрын
And it rocks
@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?
@Mak69870
@Mak69870 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 жыл бұрын
​@@Mak69870 Hello! Could you please provide a simple example of this? I would be extremely appreciated .
@Mak69870
@Mak69870 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 жыл бұрын
@@Mak69870 Thanks a lot!
@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
What & Why do we need Lambda Expressions in Java? | Tech Primers
18:55
What are Business Rules? It's not this.
10:58
CodeOpinion
Рет қаралды 28 М.
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 33 МЛН
小蚂蚁被感动了!火影忍者 #佐助 #家庭
00:54
火影忍者一家
Рет қаралды 36 МЛН
UNO!
00:18
БРУНО
Рет қаралды 3,1 МЛН
Schoolboy - Часть 2
00:12
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 5 МЛН
Generics in Java - Full Tutorial
20:08
Daily Code Buffer
Рет қаралды 27 М.
Microservices and Rules Engines - a blast from the past - Udi Dahan
52:48
How To Create Generics in C#, Including New Features
38:51
IAmTimCorey
Рет қаралды 44 М.
Proxy Server vs Reverse Proxy Server | Security | Tech Primers
6:57
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 236 М.
Profiles in Spring Boot | Spring Profiles | Tech Primers
14:13
Tech Primers
Рет қаралды 72 М.
How to use the DataSet rule in Pega?
20:08
TechRide with PK
Рет қаралды 13 М.
Misti Ke Gadi Ke Niche Billi 🐱😻 | mistihappylifestyle #shorts #viral #funny #comedy #cute #cat
0:19
Quem vai assustar mais meninos ou meninas?!😱 #shorts #challenge
0:10
Gabrielmiranda_ofc
Рет қаралды 118 МЛН
Читерская рыбалка!🤯🐟 (@fishinglover790)
0:24
Взрывная История
Рет қаралды 2,6 МЛН
Don´t WASTE FOOD pt.4 🍜
0:20
LosWagners ENG
Рет қаралды 13 МЛН