Reactive Spring Boot: Part 2: Java REST Client

preview_player
Показать описание
This second step in the tutorial is to create a #Reactive #Spring #Java client that connects to a REST service that's streaming stock prices once a second. We'll be using a #TDD-style approach to drive out the API and to see it working

This tutorial is a series of videos outlining a number of steps to build a full #SpringBoot application featuring a #Kotlin service back end, a #Java client and a #JavaFX user interface.

*Author: Trisha Gee

Join us:

Рекомендации по теме
Комментарии
Автор

For those, who had stuck on absence of .retryBackoff() , they deprecated this method, they suggest to use .retryWhen(Retry.backoff(5, Duration.ofSeconds(1))). I was able to launch this thing so far, but i`m getting empty Flux during the call. And it is almost impossible to debug this all react thingy, it swallows all errors, and http call is not executed untill the last moment, where i still cannot intercept it to check what is wrong.

Dany
Автор

Thanks for the video. My module is not created correctly, there is no package inside main/java and I cannot create classes.

edlirakalemi
Автор

I'm trying to write it in kotlin but i've got a problem with this StockPrice class, im trying to initialize properties without assigning it. I tried with lateinit, but price: Double is primitive type, so I've got hardstuck. I'm new to kotlin btw. Anyone know how to deal with that?

sporak
Автор

Lombok annotations are not working for me in this project. Can't make use of the log or the @Data, @AllArgsConstructor or @NoArgsConstructor.

jesusredondo
Автор

Why not use @Autowire on the web client field? Isn't dep-injection what you want to use in Spring?

fermiparadox