Spring Boot Webflux CRUD Tutorial - Using Spring Data R2DBC & PostgreSQL

  Рет қаралды 7,742

Genka

Genka

Күн бұрын

Пікірлер: 20
@danielmigwi1999
@danielmigwi1999 4 ай бұрын
A short and comprehensive video , add more of webflux with microservice
@mariadelosangelesugasnavarro42
@mariadelosangelesugasnavarro42 Ай бұрын
Gracias por el video. Esta excelente!
@MansoorHasani
@MansoorHasani 8 ай бұрын
A short and comprehensive video
@kappaj01
@kappaj01 Жыл бұрын
There is a bit more trickery on the controller annotations that will make it a true reactive endpoint emitting a true stream of events. The way it is implemented here is not a true stream to the client.. Create a delay in the service class, add a couple more car records, and then check the client waiting for all the records to be read by the service before the controller will eject the data.
@leandroquintiliano895
@leandroquintiliano895 9 ай бұрын
Hey dude i've got a question and need some help. I'm making a search in the database via repository and setting the result into an object. The issue is that i need to treat that data on the object that i have just fetched by using it as an argument in methods or even to transform it into a dto but the it always turns into null. Sometimes i've also got another problem that the data came from the database is null and sometimes it brings the data up, and in this case it looks like there weren't enough time to bring the data once it's reactive. Any tip of what i can do?
@securethebag1613
@securethebag1613 Жыл бұрын
i have a question my friend. when h2 is implement this way, do we no longer have access to the h2 console? i see the data with the GETs, POSTS, PUTS, and DELETES, but i cant access the console to run queries and compare results like youre doing in this video
@heygenka
@heygenka 11 ай бұрын
If you use spring boot with in memory H2 database, maybe the property 'spring.h2.console.enabled=true' can help you. Then you should be able to access it with 'localhost:8080/h2-console'. Thats from a tutorial I found on google. Maybe that helps you.
@vazhabek202
@vazhabek202 11 ай бұрын
thank you man for your video! can you please write which tool in this video you used for hinting ?
@heygenka
@heygenka 11 ай бұрын
github copilot
@danielrt9950
@danielrt9950 Жыл бұрын
Very good video brother, but what should be done in case your table has a one-to-many relationship with another? With JPA we use @OneToMany, but that is not available in r2dbc which strategy should be followed?
@ЗдравыйСмысл-ш5р
@ЗдравыйСмысл-ш5р Жыл бұрын
There is no choose. You should write your own native sql query with your joins and execute them by org.springframework.data.r2dbc.core.DatabaseClient. DatabaseClient client = …; client.execute("SELECT person.age, address.street FROM person INNER JOIN address ON person.address = address.id");
@ЗдравыйСмысл-ш5р
@ЗдравыйСмысл-ш5р Жыл бұрын
Thanks for the videos, good explanation. I would recommend you to use domain driven design for writing your code in the mainstream approach.)
@rajeev1084
@rajeev1084 Жыл бұрын
What if id is not autogenerated and for save, update or query we get it as part of request only?
@junxingfu
@junxingfu Жыл бұрын
good question. I got the wonder
@HasNoName69
@HasNoName69 Жыл бұрын
why no relations?
@heygenka
@heygenka 11 ай бұрын
Afaik R2DB did not support relationship mapping, like OneToMany, ManyToOne or ManyToMany, the last time I checked it. So it is a simple but reactive object mapper.
@HasNoName69
@HasNoName69 11 ай бұрын
@@heygenka ah i see so i will go with quarkus + hibernate reactive, thanks
@MarcosDelBasso
@MarcosDelBasso 10 ай бұрын
you could use @Data instead of using @Getter / @Setter and @Build, great tutorial btw
@Haishang0575
@Haishang0575 9 ай бұрын
Thanks. However, I always got warning said that @Data in Entity class will cause performance issue. Ask me to use @Getter, @Settter... Any advice?
@biredoffreedom2917
@biredoffreedom2917 Жыл бұрын
cool
Fullstack OAuth2 - Angular, Spring Boot & Keycloak
26:35
Антон Котов - Почему мы решили переходить на R2DBC и чем это закончилось
1:09:31
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Spring Reactive - Lesson 1 - Exposing a reactive REST endpoint
51:26
Reactive Programming with Spring Boot | A Beginner's Guide
40:31
WebFlux. Реактивный web с Spring Java
22:41
letsCode
Рет қаралды 63 М.
From JDBC to R2DBC: Is it worth it? | Alejandro Duarte (EN)
48:53
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН