While runnning OrderServiceApplicationTests class I am getting the following error: java.sql.SQLSyntaxErrorException: Table 'test.orders' doesn't exist. Not sure why it is taking database name as 'test'
I have the question: If we have four services A, B, C, D in our project and B, C, D services needs to call API of A service. So, we need to define Feign client for service A in B, C, D services and that is duplicate 3 times, right? Is there anyway to define Feign client for A service one time only and it can be shared among 3 services B, C, D?
Yes it is because that’s a contract of each service . How come it becomes duplicate if these are supposed to be loosely coupled , independently deployed units ? Think in that way !
the order-service starts up fine but running the post query on postman gives me a error code 500: "java.net.ConnectException: Connection refused: no further information" i tried changing the ports but still not able to fix the issue
I thinks its suggested by name of the annotation Before all, it will executed piece of code before each test run. And on other hand static block get executed only once before the main method execution.( its a traditional way of initialising the bean, vars, objects etc).
Unfortunately I cannot provide you the date yet, please subscribe to the waitlist to get updates about the release date when it's ready. You can find the link to it in the Community Post.
Yes as I mentioned in the course, I won't cover all the use cases, but I was planning to give this task as an exercise after the Event Driven Microservices tutorial is out. Basically when the order is placed we can send out an event through Kafka, the inventory service then listens to this message and then subtracts the inventory. Of course in the real world this is much more complex but again we are only learning about microservices here not building a full blown e-commerce system!
I had set the line server.servlet.context-path=/api in my main .properties file. However, when running the tests and configuring them to handle WireMock, it was giving the following error: { "type": "about:blank", "title": "Not Found", "status": 404, "detail": "No static resource api/order.", "instance": "/api/order" } java.lang.AssertionError: 1 expectation failed. Expected status code but was . I removed the line from the properties file and added @RequestMapping("/api/order"). i was using just /order. to the controller, and it worked. Do you know why? Since there isn't much difference.
@@ProgrammingTechie while running tests. As I said, I removed the context path in the .properties file and set the path to /api/order in the controller as usual, and it worked. Before dealing with the OpenFeign issue, the tests were running smoothly, but it worked. need to check later what might be causing this problem. That said, your content is excellent
Link to the written tutorial: programmingtechie.com/articles/spring-boot-microservices-tutorial-part-3
Not working the above link.
@@parttime-teach Fixed it now
waiting for more vedios on Spring Boot Microservices Tutorial's
congrats to indian-like guys to give free creative knowledge to the people arround the world
Thanks for the videos, please increase the font size of code and change the background of IDE bcoz code is not visible properly.
Yes I am already working on it, the new videos will have increased font
Hi Sai , Can we try to implement asynchronous communication in this setup by referring to your previous microservices tutorial?
While runnning OrderServiceApplicationTests class I am getting the following error:
java.sql.SQLSyntaxErrorException: Table 'test.orders' doesn't exist. Not sure why it is taking database name as 'test'
I have the question: If we have four services A, B, C, D in our project and B, C, D services needs to call API of A service. So, we need to define Feign client for service A in B, C, D services and that is duplicate 3 times, right? Is there anyway to define Feign client for A service one time only and it can be shared among 3 services B, C, D?
Yes it is because that’s a contract of each service . How come it becomes duplicate if these are supposed to be loosely coupled , independently deployed units ? Think in that way !
@@raghavanaliassaravananm1546 Yeah, maybe i was too focused on re-use code problem.
Waiting for the next video
the order-service starts up fine but running the post query on postman gives me a error code 500: "java.net.ConnectException: Connection refused: no further information" i tried changing the ports but still not able to fix the issue
I am facing the same issue, Did you get any solution for this?
@@supremeleader7695 did u solve the issue
Yes I solved it, but i dont remember it now, Need to check the code @@ishasingh1039
how we can eureka client issue
Why is the mysql test container initialized in a static block instead of inside a @BeforeAll method?
I thinks its suggested by name of the annotation Before all, it will executed piece of code before each test run. And on other hand static block get executed only once before the main method execution.( its a traditional way of initialising the bean, vars, objects etc).
When are you launching your course?
Unfortunately I cannot provide you the date yet, please subscribe to the waitlist to get updates about the release date when it's ready. You can find the link to it in the Community Post.
Which K8s we are going to use? I mean EKS, ECS, GKE, AKS, Kubeadm in EC2, microK8s, etc?
I won't be deploying to Cloud, only on local kubernetes cluster
I think we missed a part here, after placing an order we must subtract the inventory item against that skuCode.
Yes as I mentioned in the course, I won't cover all the use cases, but I was planning to give this task as an exercise after the Event Driven Microservices tutorial is out.
Basically when the order is placed we can send out an event through Kafka, the inventory service then listens to this message and then subtracts the inventory.
Of course in the real world this is much more complex but again we are only learning about microservices here not building a full blown e-commerce system!
@@ProgrammingTechie Yes, I get it. Thank you so much. I'm already learning a lot through it.
did you bought the IntelliJ ultimate
Yes I have ultimate edition
I had set the line server.servlet.context-path=/api in my main .properties file. However, when running the tests and configuring them to handle WireMock, it was giving the following error:
{
"type": "about:blank",
"title": "Not Found",
"status": 404,
"detail": "No static resource api/order.",
"instance": "/api/order"
}
java.lang.AssertionError: 1 expectation failed.
Expected status code but was .
I removed the line from the properties file and added @RequestMapping("/api/order"). i was using just /order. to the controller, and it worked. Do you know why? Since there isn't much difference.
Is this happening only while running the tests or also while running the application locally ?
@@ProgrammingTechie while running tests. As I said, I removed the context path in the .properties file and set the path to /api/order in the controller as usual, and it worked. Before dealing with the OpenFeign issue, the tests were running smoothly, but it worked. need to check later what might be causing this problem. That said, your content is excellent
java.sql.SQLException: Access denied for user 'root'@'172.24.0.1' (using password: YES)
How to fix this issue?