16 Working with Mono and audience Q&A (Reactive programming with Java - full course)

  Рет қаралды 26,857

Java Brains

Java Brains

Күн бұрын

Course: Reactive programming in Java
Covers: Reactive fundamentals, Project Reactor
Access this full course NOW & unlock more awesome courses like this by becoming a member:
/ @java.brains
Website:
www.javabrains.io
Learn the basics of reactive programming. You will learn to "THINK REACTIVE" - understand the paradigm shift and thinking change necessary to write code in a reactive way using Project Reactor.
New video every 3 days! Subscribe and enable notifications to be alerted.

Пікірлер: 20
@JimmyHeller
@JimmyHeller 6 ай бұрын
I'm a seasoned Java developer and I watched this full course. You are a hell of a teacher! Thank you!
@aplusphilic
@aplusphilic 2 жыл бұрын
You have effective way of digesting complex topics in a way it’s easier to understand o matter someones experience. Great series. BTW your IDE looks really clean, do you mind sharing theme and font that you are using?
@mostinho7
@mostinho7 Жыл бұрын
Done thanks Mono has block() or blockOptional methods which return the value emitted by mono by blocking until it’s available Blocking loses the benefits of reactive programming, you shouldn’t block
@deepaksamria1862
@deepaksamria1862 2 жыл бұрын
Just love this series... thanks sir 👏 for valuable content
@varunvijaywargi5497
@varunvijaywargi5497 2 ай бұрын
In this section, do we need the System.out.println statement at the along with System.in.read() since we are blocking and Mono is expected to return only 1 value?
@anands53
@anands53 Жыл бұрын
@Java Brains, thank you so much for your informative courses. I got a doubt using the block() in mono. Can we use Mono num = ReactiveSources.intNumberMono(); sysout(num); //getting output as 'MonoDelayElement' Why am I not getting the number 42. this is also a blocking code right? I mean until the variable num is assigned, we cannot go to next line. Please help me understand.
@sanguk2066
@sanguk2066 Жыл бұрын
If we care building User object from the response of two service calls then how can i return Mono back from the controller ?
@PriyankaSharma-vw2gx
@PriyankaSharma-vw2gx Жыл бұрын
@Java.Brains At 3:28 mins, we are blocking until mono emits an Integer. Mono by deifinition emits 0 or 1 element. What if it doesn't emit anything. Is the blocking indefinite? Or does mono give a signal in some way that it has nothing to emit?
@Musicforlifeformusic
@Musicforlifeformusic 2 жыл бұрын
Can you please please make a video on micronaut http client. I am having a very hard time implementing a non blocking http request.
@BekTesfa
@BekTesfa Жыл бұрын
Can we say that a Mono is a special case of Flux ? (or Mono is a Flux where N is 1) ?
@SS-ej7zq
@SS-ej7zq 2 жыл бұрын
Can you please make a video for Spring boot crud operation in vs code with step by step process
@hyperborean72
@hyperborean72 Жыл бұрын
I still did not get it - in what way Flux/Mono is preferable over CompletableFuture
@updownftw
@updownftw 2 жыл бұрын
If my controller is returning a Mono and I’m calling the controller end point from let’s say Angular, how will angular handle it ? Will the code be same in angular as for a normal request call ?
@DeathBender
@DeathBender 2 жыл бұрын
im assuming you are calling via HTTP ? Angular uses Observables and your HTTP calls in Angular will return an Observable, which work similar. You either pass to your subscribe() method then an observer (which is encouraged by Angular) or the onNext, onError and onComplete methods directly (works as of now but is deprecated rather use the Observer that holds these methods).
@updownftw
@updownftw 2 жыл бұрын
@@DeathBender so basically subscribe method of Angular works similar to subscribe method of Project Reactor
@DeathBender
@DeathBender 2 жыл бұрын
@@updownftw well there are differences ofc it's ReactiveX or RxJS (might help if you are familiar with RxJava) but even some operators are the same or very similar, so basically yes, i'd still encourage you to look up about it, Observables are still a different "beast" ;)
@updownftw
@updownftw 2 жыл бұрын
@@DeathBender Thanks bro, Koushik should make a full stack Angular/React and Project Reactor tutorial. It would be interesting.
@DeathBender
@DeathBender 2 жыл бұрын
@@updownftw well he should have some Angular + SpringBoot "stuff" (pretty sure i've seen smth) beyond that you can just use some Reactive Controller (which are not that different) with Webflux and make HTTP calls from a very basic Angular app
@BekTesfa
@BekTesfa Жыл бұрын
Imagine that you are calling a service that emits a Mono, and you want to flatten that Mono into a java object and access its property then I think we should use block() on the emitted Mono. Is this a good practice? Does it affect the performance since we are blocking it ? Is there an alternative solution ?
@1994rohithp
@1994rohithp 8 ай бұрын
if you are using block on the Mono to get the object, you are actually beating the purpose. It's not reactive anymore. Ideally, you get a Mono from the Command layer to the Service layer to the Controller layer. The controller also returns Mono.
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12
Apple peeling hack @scottsreality
00:37
_vector_
Рет қаралды 129 МЛН
SCHOOLBOY. Мама флексит 🫣👩🏻
00:41
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 7 МЛН
Should you still LEARN Java in 2023
8:16
Amigoscode
Рет қаралды 269 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 653 М.
Reactive Programming with Spring Boot | A Beginner's Guide
40:31
Master the Perfect ChatGPT Prompt Formula (in just 8 minutes)!
8:30
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12