Please continue quality content like this sir. Awesome real world content.. rarely we see this kind of content
@prasanthsanjeevi25636 ай бұрын
Tons of thanks 🙏 for giving the valueable content for free
@Amarpatil-zg2tz6 ай бұрын
Great Content! Ur All videos are full of knowledge. Thanks. Waiting for more content like this!!!
@reallylordofnothing5 ай бұрын
I cannot repeat enough (as I have done in twitter too) This is great content. This is great content. This is great content. This was a great introduction to testing. This video will stand out for the focus on tests for those not used to testing frameworks in their firms. I will be more than happy to join and pay once I hit the paywall on video no 6 or 7. (sorry for these spam-like messages)
@hamzaouni30096 ай бұрын
Thanks a lot for this great content. I prefer the use of TDD as it offers a more engaging approach to software development
@BlankSlate53646 ай бұрын
Hi Siva, thanks for the valuable content. Can we use cucumber, karate & test containers to write integration test?. what's your thought on using this combination instead of rest assured & test containers
@sujayrj6 ай бұрын
The series is really good, please keep it coming. What is the code complete feature you are using in IntelliJ? Is there a separate plugin that is needed? Thanks again!
@sivalabs6 ай бұрын
I have GitHub Copilot plugin which gives me autocompletion suggestions. But it is a paid service. Recently Intellij IDEA also added Line Completion support, maybe you can try it also.
@geovannymendozagonzalez91196 ай бұрын
Hi Siva excellent, this series of videos has really helped me a lot. I'm curious because you implemented the ProductNotFoundException in the Controller and not in the service. I have read in some books that it is better to leave that functionality to the service.
@sivalabs6 ай бұрын
From the Service, we can indicate to the client the absence of the Product for the given code in 2 ways. Either by returning Optional or by throwing ProductNotFoundException. I prefer to return Optional.empty() if the product doesn't exist because 1) It is not actually an Exceptional situation, you are looking up data that doesn't exist. 2) Returning Optional enables the client(in our case Controller) to use Java Streams API to take further actions in stream processing style using map(..) or orElse(..). If we throw an Exception we can't use stream processing style logic for further action.
@sakthinivas18406 ай бұрын
Thanks for your video! Test class for ProductService is not been created. Also, is unit/slice test required for controllers? currently there is integration test available for the same.
@sivalabs6 ай бұрын
There is no complex business logic in ProductService and the existing logic is already covered by the integration tests. So, didn't write any unit tests for ProductService class.
@sujayrj6 ай бұрын
@Siva - The Test written for Controller, was it Slice test or Integration test?
@sivalabs5 ай бұрын
The test written using @WebMvcTest is a slice test and @SpringBootTest annotated tests are integration tests.
@harshak16165 ай бұрын
why are we passing repository or any service in constructor parameter instead of autowiring ?
@sivalabs5 ай бұрын
Because Field Injection is not recommended. To learn more see kzbin.info/www/bejne/oaDbpmhnmtZ3n7M
@harshitaahuja68706 ай бұрын
Sir, Which K8s you'll use to deploy this project? I mean EKS, GKE, or Kubeadm at EC2? Will you use ingress and all with secret-manager/HarshicorpVault and certificate-manager for https? I want to know how much production ready course it'll be. Kindly reply. So far it is looking promising. Thanks anyway.
@sivalabs6 ай бұрын
In this fee course I am going to deploy on the local KinD cluster only.
@harshitaahuja68706 ай бұрын
How many total videos it'll take sir? And in how many days? Can we complete the series by end of this April?
@sivalabs6 ай бұрын
@@harshitaahuja6870 There are still 12 to 15 videos to be recorded. Mostly by mid-May all the videos will be published.
@TheDummyHead5 ай бұрын
Hey. What would be the reason behind using a sequence that increments by 50? I've read that it's an optimization technique used in high concurrent scenarios to improve performance.
@sivalabs5 ай бұрын
Hi, this is an optimization done by Hibernate to reduce the nextval(sequence). For more detailed explanation see ntsim.uk/posts/how-to-use-hibernate-identifier-sequence-generators-properly
@TheDummyHead5 ай бұрын
@@sivalabs thank you, very good article
@AnuragMishra-ws4zc6 ай бұрын
Great ❤
@lts86836 ай бұрын
many thanks
@reallylordofnothing5 ай бұрын
Are you using postman on web or desktop?
@sivalabs5 ай бұрын
I am using Postman Desktop Client.
@sakthinivas18406 ай бұрын
For some reason, the DML script V2__add_books_data.sql was not executed, only the create product table script was executed. Any idea how to solve this?
@sivalabs6 ай бұрын
Can you share the project on GitHub, I will check?
@sakthinivas18406 ай бұрын
@@sivalabs Never mind, I got it fixed, seems due to file naming convention, thanks