Using Retrofit to make HTTP calls

Поделиться
HTML-код
  • Опубликовано: 24 окт 2024
  • make http REST calls, pass in parameters, use dynamic paths, call asynchronously and more..
    Channel
    ----------------------------------
    Master difficult programming concepts in few minutes. I try to explain difficult concepts like Java concurrency in simple to understand manner. Explore videos on topics like Spring Boot, Cloud Foundry, Java 8 and more. I am happy to clarify your doubts. Ask me anything in the comments. Also happy to take requests for new videos.
    New video added every Sunday.
    Subscribe or explore the channel - bit.ly/defog_tech
    Current Playlists
    ----------------------------------
    Java Executor Service - bit.ly/exec_srvc
    Java Concurrency - bit.ly/java_crncy
    Spring Boot 2.0 - bit.ly/spr_boot2
    Java 8 - bit.ly/java_8-11
    Intellij IDEA Shortcuts - bit.ly/i_idea
    Popular Videos
    ----------------------------------
    Executor Service - • Java ExecutorService -...
    Introduction to CompletableFuture - • Introduction to Comple...
    Understand how ForkJoinPool works - • Understanding how Fork...
    Java Memory Model in 10 minutes - • Java Memory Model in 1...
    Volatile vs Atomic - • Using volatile vs Atom...
    What is Spring Webflux - • What is Spring Webflux...

Комментарии • 23

  • @qataracgnacgn
    @qataracgnacgn 2 года назад +1

    Very clear, to-the-point and succinct explanations. you ought to start classes locally. Thank you very much.

  • @sanjeevkumarrai3413
    @sanjeevkumarrai3413 4 года назад

    Very nice and crisp explanation, although we work everyday with http clients but ur videos are worth watching and refreshing

  • @shaikhmaheen
    @shaikhmaheen 5 лет назад +3

    Excellent tutorial very nicely prepared to the point and easy to understand

  • @parasrawat7287
    @parasrawat7287 4 года назад

    Plain, Elegant and simple. Awesome.

  • @GuitarreroDaniel
    @GuitarreroDaniel 4 года назад

    This was amazing man, thank you very much!

  • @vengateshm2122
    @vengateshm2122 3 года назад

    Nice

  • @abdulraqeebm.3305
    @abdulraqeebm.3305 5 лет назад

    Amizing explaination !

  • @lawrencekatuva8735
    @lawrencekatuva8735 3 года назад

    Thank you

  • @chinmayachowdary
    @chinmayachowdary 5 лет назад

    Excellent.

  • @niloysaha3229
    @niloysaha3229 5 лет назад +1

    How does it different from FeignClient which comes with Spring Cloud project?

    • @DefogTech
      @DefogTech  5 лет назад +1

      Not much different. RestTemplate of Spring also can achieve similar things.

  • @a51575
    @a51575 4 года назад

    How will we implement retry and timeout in retrofit

  • @SaraSociales
    @SaraSociales 3 года назад

    great!

  • @sharanyarai378
    @sharanyarai378 5 лет назад

    Thanks for the tutorial. Why should i go for this when rest template can do the same ? Pls clarify

    • @DefogTech
      @DefogTech  5 лет назад +1

      Good question. I haven't used rest template much so cannot say authoritatively.. but retrofit is most popular Android http library out there, and I am sure it has more features than rest template of spring

    • @letsengineer367
      @letsengineer367 4 года назад +2

      RestTemplate is a good option to make an API call. We can also use Feign client to make HTTP calls, which is essentially an interface based approach and Spring would provide an implementation for the interface. We can also define our custom load-balancing mechanism to make such calls (In which case it is recommended to use a discovery server).

  • @Brajgamer
    @Brajgamer 4 года назад

    This also supports completablefuture out of the box

  • @samboy05
    @samboy05 5 лет назад +1

    How is performance as compared to RestTemplate ?

    • @DefogTech
      @DefogTech  5 лет назад +1

      Haven't checked but I'm positive it will be comparable. One thing spring template doesn't have it's asynchronous call.. for that you have to use new web client of spring 5.0

  • @piece_of_me
    @piece_of_me 5 лет назад

    Are those slides available somewhere?

  • @amgedalyemny6594
    @amgedalyemny6594 5 лет назад

    Could you give as this as kotlin

  • @deepakmarneni2110
    @deepakmarneni2110 5 лет назад +1

    How it is different from sleuth?

    • @DefogTech
      @DefogTech  5 лет назад

      Sleuth is for distributed tracing isn't it? Retrofit is a simple http client