Consume Rest service using Spring 5 WebClient (Reactive programming) | Java Techie

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ม.ค. 2025

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

  • @aswarthanarayanareddyb176
    @aswarthanarayanareddyb176 5 ปีที่แล้ว +1

    Nice sir, every time I'm learning From new things in java Techie

  • @techvideos3891
    @techvideos3891 4 ปีที่แล้ว +6

    Would really appreciate if you could show unit test cases for consuming api's in reactive way

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      Okay I will do

    • @pratikshasutar728
      @pratikshasutar728 2 ปีที่แล้ว +1

      Yes please

    • @Javatechie
      @Javatechie  2 ปีที่แล้ว +2

      It's already uploaded please check reactive programming playlist

  • @lakhankale9692
    @lakhankale9692 2 ปีที่แล้ว +1

    Really helpful video sir

  • @AhmedKhaled-he9mf
    @AhmedKhaled-he9mf 3 ปีที่แล้ว +1

    Very thanks for nice explain
    Please question, for call web service, as performance(fast, memory, CPU) which better, Client Jersey or WebClient Spring??

  • @nikhilbharne
    @nikhilbharne 6 ปีที่แล้ว +1

    Very helpful👌👍

  • @mohammedsardar3779
    @mohammedsardar3779 5 ปีที่แล้ว +2

    Wonderful hands on explanation but please try to be little bit louder
    Struggling to hear your voice. Thanks.

    • @Javatechie
      @Javatechie  5 ปีที่แล้ว +1

      Thank you Going forward will take care of this .

    • @mohammedsardar3779
      @mohammedsardar3779 5 ปีที่แล้ว

      @@Javatechie Thank you so much for responding.

  • @diegogiardini
    @diegogiardini 2 ปีที่แล้ว +1

    Great explanation! I've a doubt as I'm consuming a Rest API with Authentication. Where should I get this token or how? Thanks!

    • @Javatechie
      @Javatechie  2 ปีที่แล้ว +1

      As part of request header

  • @indraalapati989
    @indraalapati989 ปีที่แล้ว +1

    Hi Basant, QQ - When API returns mono to the client I believe it is basically a future object. Does the caller of our API should be reactive as well to handle Mono/Spring will take care of filling the Mono object before sending response to client. I am just trying to understand how Mono/Flux behaves in B2B calls if the caller is not reactive.

    • @Javatechie
      @Javatechie  ปีที่แล้ว +1

      Yes the caller should be reactive programming to handle either flux or mono

    • @indraalapati989
      @indraalapati989 ปีที่แล้ว

      @@Javatechie Okay, so if I develop rest apis using reactive style, then the client cannot access my resources using synchronous/blocking technology is that true ? So basically client and server should work on SSE(Server sent events)/HTTP Push technology. This doesn’t make complete sense to me, I will test from my end. Thank you Basant.

    • @illu_millu_tillu
      @illu_millu_tillu ปีที่แล้ว

      Hi, I also have the same doubt, any idea regarding this doubt? It would be great If you could explain here as well. will really appreciate that.

  • @swapnilmishra697
    @swapnilmishra697 2 ปีที่แล้ว +1

    nicely explained

  • @aayushijain2937
    @aayushijain2937 4 ปีที่แล้ว +1

    Hi, I am getting error he type org.springframework.web.util.UriBuilder cannot be resolved. It is indirectly referenced from required .class files

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      Did you added all required dependency

  • @ankitgupta-ph4nk
    @ankitgupta-ph4nk 2 ปีที่แล้ว +1

    But in this lecture what is asynchronous operation.. Would be better if there is any example covered for this?? Any resource plz share..

    • @Javatechie
      @Javatechie  2 ปีที่แล้ว

      Please checkout my spring reactive playlist

  • @oluwafemisamueloyekunle3204
    @oluwafemisamueloyekunle3204 4 ปีที่แล้ว +1

    If my service is a soap service but I need to make some calls to rest endpoints within that service, can I use this?

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      Yes we can but in same project you need to add separate controller class for rest endpoint

  • @DharmendraSingh-lk8ve
    @DharmendraSingh-lk8ve 6 ปีที่แล้ว +1

    wating next video

  • @vineetham1447
    @vineetham1447 2 ปีที่แล้ว

    how can we add user defined header? for example , how can we add a header with Key as userAge and value as 22

  • @dharanikumar.p8762
    @dharanikumar.p8762 6 ปีที่แล้ว +1

    please make video on exception handling using Reactive

    • @Javatechie
      @Javatechie  6 ปีที่แล้ว

      Already uploaded please go through below link
      th-cam.com/video/wikyb_DyMYk/w-d-xo.html

  • @bathulanagendra4621
    @bathulanagendra4621 6 ปีที่แล้ว +1

    Sir,if possible pls make complete example on graphql with springboot.

    • @Javatechie
      @Javatechie  6 ปีที่แล้ว

      Hi Bathula , already I uploaded spring boot with graphql video please check once

  • @sush2142
    @sush2142 4 ปีที่แล้ว +1

    Please do an example for FeignClient. It’s better than WebClient.

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      Feign client already I uploaded please check once

  • @Kphwys
    @Kphwys 3 ปีที่แล้ว

    Can you please make a video on capturing request and response body using exchange filter function

  • @sahildogra7843
    @sahildogra7843 4 ปีที่แล้ว +1

    What if we have to call https instead of http ? Getting SSL erros

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      Did you install certificate ?

    • @sahildogra7843
      @sahildogra7843 4 ปีที่แล้ว

      @@Javatechie Yes I have installed certificate in jre lib/security/cacerts and it worked . Was looking for an implementation from code perspective if Any ?

  • @sujithg5873
    @sujithg5873 5 ปีที่แล้ว +1

    Basant could u explain router function, with mongodbreactuve

    • @Javatechie
      @Javatechie  5 ปีที่แล้ว

      Ok will try this ...u r talking about spring reactive with mongo right ?

    • @sujithg5873
      @sujithg5873 5 ปีที่แล้ว

      @@Javatechie yesss

  • @mlearncdac5923
    @mlearncdac5923 4 ปีที่แล้ว +1

    how to integrate webclient with thymeleaf
    pls explain with this example

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      Thymeleaf is a dynamic HTML page and webclient is a api to consume webservices in reactive manner
      Where you want to integrate this .
      You can't inject this in UI page , you can only call your backend API using URL that's it .

    • @mlearncdac5923
      @mlearncdac5923 4 ปีที่แล้ว +1

      @@Javatechie i want to show the response in UI then what to do?

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      Ok got it , actually you need to convert it in spring boot backend itself something like mono.just() with dto .
      I didn't remember the syntax let me check I will update you

    • @mlearncdac5923
      @mlearncdac5923 4 ปีที่แล้ว +1

      ​@@Javatechie okay thank u. i am writing in controller to communicate with thymeleaf. in that controller i am writing like model.attribute ("booknow", new BookRequest()) here i am not understanding how to write controller methods to communicate with thymeleaf.
      pls make video on it . if possible.
      pls do the needful so that this video example is completely useful.
      thank u

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      You can check out my GitHub link spring boot thymeleaf crud application source code will be there

  • @asim2572
    @asim2572 4 ปีที่แล้ว +1

    What is the use of using it? without it also it was working?

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      Asim this is required for reactive programming

    • @asim2572
      @asim2572 4 ปีที่แล้ว +1

      @@Javatechie can we use it to transfer data from one database to another, like from mysql to neo4j?

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      This is completely different context you should go for spring batch to perform data migration

    • @asim2572
      @asim2572 4 ปีที่แล้ว +1

      @@Javatechie and one more question is, if a url is secured with authorization, how can i access it with web client? where to write username and password.

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      You need to pass secure information as part of request headers

  • @dadasahebnetake815
    @dadasahebnetake815 6 ปีที่แล้ว

    Very Nice..!

  • @aobaidi5626
    @aobaidi5626 5 ปีที่แล้ว +1

    any tutorial how i consume a login api to authenticate my app using webclient?

    • @Javatechie
      @Javatechie  5 ปีที่แล้ว

      If you understand how to write consumer using web client then it's easy to represent your requirement .just try once else do let me know

    • @aobaidi5626
      @aobaidi5626 5 ปีที่แล้ว +1

      Java Techie alright I will email u my code !

    • @aobaidi5626
      @aobaidi5626 5 ปีที่แล้ว +1

      @@Javatechie I have emailed you, check ur email please

    • @Javatechie
      @Javatechie  5 ปีที่แล้ว

      Sure will check and let you know soon

    • @aobaidi5626
      @aobaidi5626 5 ปีที่แล้ว +1

      @@Javatechie hi ru receiving my emails?

  • @nesreenmohd665
    @nesreenmohd665 ปีที่แล้ว +1

    Thank you!

  • @deepak1860
    @deepak1860 4 ปีที่แล้ว +1

    is that concept Spring Webflux????????

  • @rajeshreddy8510
    @rajeshreddy8510 4 ปีที่แล้ว

    How to do async call using webclient ?

  • @neha6000
    @neha6000 6 ปีที่แล้ว +2

    still waiting 😯😯

    • @Javatechie
      @Javatechie  6 ปีที่แล้ว +1

      Let me finish pending content first based on viewers demand

  • @KanagaveluSugumar
    @KanagaveluSugumar ปีที่แล้ว +1

    Very hard to hear you

    • @Javatechie
      @Javatechie  ปีที่แล้ว

      Sorry for the inconveniences. It was old video so please use headphones to increase volume

  • @SivaKumar-mo9uj
    @SivaKumar-mo9uj 4 ปีที่แล้ว

    voice is very low