I think second approach is not dynamic because you are kind of hard coding the order type value in your properties file, we want our application at runtime to determine what kind of order it is and then call the respective service, not just having a particular order type service in our IOC container.
sir can you please give some range of time in which or how much time still it will take to complete the springboot playlist thank you for taking time from ur busy schedule . i would have take some other channel from this onwards but i am in flow now as we can recall what u taught previously that is really helping a lot kindly give a time range when it is get complete please sir !!!!!! thank you for the videos
Hi Shrayansh, Amazing series!! I have two doubts in this, 1st approach - You are actually creating all types of orders in your controller, there can be 10 different types of order in future, and you would need to have beans(object) of each one of them in your controller, whether your request needs it or not. Not a scalable solution. 2nd approach - Taking from application.properties would mean that it would stay offline or whatever is assigned during the whole application uptime. And we cannot change it per client request. Defeats the purpose of being dynamic, as we would need to restart the application if the next client wants a different order from the previous one. Will search for correct approach and share.
Okay in solution 2, now every time you change the app.props you need to recompile and deploy it, unless you externalise it. Even if you externalise, whenever you toggle the value you need to restart the application. Doesn't make sense to me why we do that🤷
The second approach i didn't saw dynamic initialization the value is already hard coded in properties file which will not change at run time. Could you please give example the bean of order should be created dynamically based user http request?
Hi Shreyansh,can you please upload the video on how to dynamically load all classes during runtime in java 18.I have searched everything but didn't find any solutions for this.Thanks in advance.😊
first of all , thanks for video and one request sir can u suggest one good project requirement ..apart form these usual projects like( library ,school management , insta clone youtube clone ) I mean what do you see in a project in resume to say that it is a good one . Please reply !
In the 2nd approach, would it not take the application to restart once properties have been changed? Would that be a disadvantage of this approach? We can't determine the type of order during the request. 1st one does.
In the order interface keep a function call returnOrderType. And in each implementation keep a class variable orderType and set value of orderType like ONLINE or OFFLINE. The returnOrderType method would return this class variable. Now in the caller class declare a Map and use @Autowired on List. Then in a @PostConstruct method fill up the Map with orderType (String) and its corresponding class (Order) by iterating the List which has all the implementation of Order interface. When you get the order type value from user, use it as key to fetch corresponding order implementation class from the map.
I think second approach is not dynamic because you are kind of hard coding the order type value in your properties file, we want our application at runtime to determine what kind of order it is and then call the respective service, not just having a particular order type service in our IOC container.
Please dont stop this spring Boot series, upload videos regularly
sir can you please give some range of time in which or how much time still it will take to complete the springboot playlist
thank you for taking time from ur busy schedule . i would have take some other channel from this onwards but i am in flow now as we can recall what u taught previously that is really helping a lot
kindly give a time range when it is get complete please sir !!!!!!
thank you for the videos
Hey shreyansh,can you give me an approximate month by which all the spring boot topics in your roadmap will be uploaded
Hi shrayansh, please don't stop this series... Waiting a lot...
i will work tomm on notes making. expect video only on weekends buddy. Sorry for that
Thanks for explaining
Can u plz make vedio on spring boot @transactional annotation
hey shrayansh, this is must pick pls plan it
Hi Shrayansh,
Amazing series!!
I have two doubts in this,
1st approach - You are actually creating all types of orders in your controller, there can be 10 different types of order in future, and you would need to have beans(object) of each one of them in your controller, whether your request needs it or not. Not a scalable solution.
2nd approach - Taking from application.properties would mean that it would stay offline or whatever is assigned during the whole application uptime. And we cannot change it per client request. Defeats the purpose of being dynamic, as we would need to restart the application if the next client wants a different order from the previous one.
Will search for correct approach and share.
Bahut BAAP padhate ho Shrayansh.
nice
Hiii shrayansh , I don't have mastercard kindly make changes so that membership can be taken by UPI payment also
Okay in solution 2, now every time you change the app.props you need to recompile and deploy it, unless you externalise it. Even if you externalise, whenever you toggle the value you need to restart the application. Doesn't make sense to me why we do that🤷
Thank you bhaiya. Very helpful🎉
but we can do dynamic loeading with factory design pattern also right? depending on Query pram whether its "online" or "offline"?
Recent interview question on this same topic and thanks for solving.
The second approach i didn't saw dynamic initialization the value is already hard coded in properties file which will not change at run time. Could you please give example the bean of order should be created dynamically based user http request?
Hi shrayansh, why we can't create object on after getting object. So, it will save some memory.
Sir can you share the roadmap document that you were followed in your first video in this playlist?
Sir please upload videos more frequently they are the best..
Thanks
sure
thank you for all the amazing videos you've been creating!
thanks
What if I want to change in application properties at run time?
Can anyone please provide me a notes link?
Waiting for the next video ❤
Thank you Shrayansh for making the video on this
Hi Shreyansh,can you please upload the video on how to dynamically load all classes during runtime in java 18.I have searched everything but didn't find any solutions for this.Thanks in advance.😊
Can you make a video on schedular in spring boot to send 1000 of email and explain how to handle the exception while scheduling
first of all , thanks for video and one request sir can u suggest one good project requirement ..apart form these usual projects like( library ,school management , insta clone youtube clone ) I mean what do you see in a project in resume to say that it is a good one . Please reply !
Informative.
In the 2nd approach, would it not take the application to restart once properties have been changed? Would that be a disadvantage of this approach? We can't determine the type of order during the request. 1st one does.
Make videos for cloud computing as well
This can be resolved by strategy design pattern also.
Sir when you are going to upload next video
this weekend
Why you stopped the series continue it please
not stopped, more videos will come
Please make videos on spring security as well
Sir, when are you going to upload your next video?
Hi Shreyansh , can you please fixed timeline when the whole playlist will be finished
What if you have 5 different implementation of Order class.
In the order interface keep a function call returnOrderType. And in each implementation keep a class variable orderType and set value of orderType like ONLINE or OFFLINE. The returnOrderType method would return this class variable. Now in the caller class declare a Map and use @Autowired on List. Then in a @PostConstruct method fill up the Map with orderType (String) and its corresponding class (Order) by iterating the List which has all the implementation of Order interface. When you get the order type value from user, use it as key to fetch corresponding order implementation class from the map.
Very good series. Please upload videos in regular intervals.
yes will do
waiting and waiting a lot sir..... for more videos of this series
this weekend i will work on spring boot only
I'm going to watch this soon
Hi shreyansh ,it would be great if you can make a video on Spring Integration for parallel api calls
noted
@@ConceptandCoding This complete spring boot series is free on TH-cam?
I am very thankful to you, I really need this
thanks
sir pls cupload in udemy business sir, also some videos in lld,hld,java are missing in udemy business pls help sir
hi buddy for uploading to business i need 30+ reviews currently there are not much reviews on spring boot course
Java videos in TH-cam and udemy are same right. All topics videos are there in udemy also right or any videos missing?
@@venkatakalyan4953 same
@@ConceptandCoding have you provided notes /slides on udemy for java and lld cources.Please reply.
Please reply