Spring Boot Microservices Tutorial - Part 4 - Spring Cloud OpenFeign & Testing with Wiremock

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 พ.ย. 2024

ความคิดเห็น • 34

  • @ProgrammingTechie
    @ProgrammingTechie  7 หลายเดือนก่อน +1

    Link to the written tutorial: programmingtechie.com/articles/spring-boot-microservices-tutorial-part-3

    • @parttime-teach
      @parttime-teach หลายเดือนก่อน +2

      Not working the above link.

    • @ProgrammingTechie
      @ProgrammingTechie  หลายเดือนก่อน

      @@parttime-teach Fixed it now

  • @GopalaKrishna-ns2lb
    @GopalaKrishna-ns2lb 7 หลายเดือนก่อน +1

    waiting for more vedios on Spring Boot Microservices Tutorial's

  • @tasos8230
    @tasos8230 หลายเดือนก่อน

    congrats to indian-like guys to give free creative knowledge to the people arround the world

  • @sanketkadam4716
    @sanketkadam4716 7 หลายเดือนก่อน +1

    Thanks for the videos, please increase the font size of code and change the background of IDE bcoz code is not visible properly.

    • @ProgrammingTechie
      @ProgrammingTechie  7 หลายเดือนก่อน

      Yes I am already working on it, the new videos will have increased font

  • @OG_241
    @OG_241 5 หลายเดือนก่อน

    Hi Sai , Can we try to implement asynchronous communication in this setup by referring to your previous microservices tutorial?

  • @SunilKumar-gz2kt
    @SunilKumar-gz2kt 2 หลายเดือนก่อน

    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'

  • @waterfire2640
    @waterfire2640 7 หลายเดือนก่อน +1

    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?

    • @raghavanaliassaravananm1546
      @raghavanaliassaravananm1546 7 หลายเดือนก่อน +1

      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 !

    • @waterfire2640
      @waterfire2640 7 หลายเดือนก่อน

      @@raghavanaliassaravananm1546 Yeah, maybe i was too focused on re-use code problem.

  • @nailtagiyev6340
    @nailtagiyev6340 7 หลายเดือนก่อน

    Waiting for the next video

  • @diptapanda8192
    @diptapanda8192 5 หลายเดือนก่อน +1

    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

    • @supremeleader7695
      @supremeleader7695 3 หลายเดือนก่อน

      I am facing the same issue, Did you get any solution for this?

    • @ishasingh1039
      @ishasingh1039 หลายเดือนก่อน

      @@supremeleader7695 did u solve the issue

    • @supremeleader7695
      @supremeleader7695 หลายเดือนก่อน

      Yes I solved it, but i dont remember it now, Need to check the code ​@@ishasingh1039

  • @adityaraj-zm7zk
    @adityaraj-zm7zk 14 วันที่ผ่านมา

    how we can eureka client issue

  • @danielsundersingh1
    @danielsundersingh1 4 หลายเดือนก่อน

    Why is the mysql test container initialized in a static block instead of inside a @BeforeAll method?

    • @Hemant._.Dhiman
      @Hemant._.Dhiman 3 หลายเดือนก่อน

      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).

  • @Rajnish089
    @Rajnish089 7 หลายเดือนก่อน

    When are you launching your course?

    • @ProgrammingTechie
      @ProgrammingTechie  7 หลายเดือนก่อน

      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.

  • @aadiraj6126
    @aadiraj6126 7 หลายเดือนก่อน

    Which K8s we are going to use? I mean EKS, ECS, GKE, AKS, Kubeadm in EC2, microK8s, etc?

    • @ProgrammingTechie
      @ProgrammingTechie  7 หลายเดือนก่อน

      I won't be deploying to Cloud, only on local kubernetes cluster

  • @ayusharyan2165
    @ayusharyan2165 7 หลายเดือนก่อน

    I think we missed a part here, after placing an order we must subtract the inventory item against that skuCode.

    • @ProgrammingTechie
      @ProgrammingTechie  7 หลายเดือนก่อน +1

      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!

    • @ayusharyan2165
      @ayusharyan2165 7 หลายเดือนก่อน

      @@ProgrammingTechie Yes, I get it. Thank you so much. I'm already learning a lot through it.

  • @tusharrai9762
    @tusharrai9762 6 หลายเดือนก่อน

    did you bought the IntelliJ ultimate

  • @mateuslevi1300
    @mateuslevi1300 7 หลายเดือนก่อน

    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
      @ProgrammingTechie  7 หลายเดือนก่อน

      Is this happening only while running the tests or also while running the application locally ?

    • @mateuslevi1300
      @mateuslevi1300 6 หลายเดือนก่อน

      @@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

  • @vind190
    @vind190 5 หลายเดือนก่อน

    java.sql.SQLException: Access denied for user 'root'@'172.24.0.1' (using password: YES)
    How to fix this issue?