Tutorial #10 | Reactive streams: map vs flatMap vs concatMap vs flatMapSequential | Engineer

  Рет қаралды 12,442

Engineerhoon

Engineerhoon

Күн бұрын

#ReactiveProgramming #FLux #Mono #FlatmapOperator #TransformingReactiveStream #Engineer
In this video, I have talked about the Reactive Stream operators. We have operators like filter, map, flatMap, concat, merge and zip for Reactive Streams. This video is about flatMap operator using which we can transform a reactive stream. I have also explained the differences between flatMap, concatMap and flatMapSequential with hands-on example.
I hope this video will also help you to understand the basic difference between map and flatMap operator.
Stay tuned.....
Happy Coding :)
======================
Important playlists
======================
Reactive Programming: • Tutorial #1 | Introduc...
Data Structures • Introduction to Data S...
Linux: • How to use VIM/VI edit...
SonarQube: • Install and configure ...
======================
You can follow me on:
======================
Instagram: / engineerhooon
LinkedIn: / sunny-shaw
Github: github.com/sun...
Medium: / sunnyshaw_12357
=============================================================
|| Subscribe and hit the bell button to get latest content ||
=============================================================

Пікірлер: 25
@bobyrasta100
@bobyrasta100 Жыл бұрын
This is the best tutorial on this topic on youtube.. till date. Thanks young man, job well done.
@Engineerhoon
@Engineerhoon Жыл бұрын
Thanks for those kind words. It means a lot.
@annapureddyravi4054
@annapureddyravi4054 9 ай бұрын
Very nice bro
@Engineerhoon
@Engineerhoon 9 ай бұрын
Thank you 😊
@RajeshSamson
@RajeshSamson 4 жыл бұрын
Superb explanation...... No more words just Subscribe
@Telugunela
@Telugunela 4 жыл бұрын
Excellent Explanation. Subscribed after this. Thanks
@Engineerhoon
@Engineerhoon 4 жыл бұрын
Thanks!!
@belliraj1
@belliraj1 4 жыл бұрын
good tutorial
@Engineerhoon
@Engineerhoon 4 жыл бұрын
Glad it helped! Please share this video so that it can reach to those who need it. Thanks.
@avinash-tripathy
@avinash-tripathy 3 жыл бұрын
Great content!!! Could you tell me how you have enabled that suggestions which you have it at the end of each line(Flux)??
@Engineerhoon
@Engineerhoon 3 жыл бұрын
You can try enabling show hints from preferences.
@amizan8653
@amizan8653 3 жыл бұрын
Is there any reason to use concatMap over flatMapSequential? I'm failing to see why you'd want to use concatMap unless you *want* the performance hit for some reason.
@Engineerhoon
@Engineerhoon 3 жыл бұрын
If you want the order to be maintained then go for concatMap.
@h.mantri
@h.mantri 3 жыл бұрын
Does flatmap spawn a new thread?
@Engineerhoon
@Engineerhoon 3 жыл бұрын
No. Reactor operators generally are concurrent agnostic: they don’t impose a particular threading model and just run on the Thread on which their onNext method was invoked.
@h.mantri
@h.mantri 3 жыл бұрын
@@Engineerhoon Is there a way I can make a flatmap/map run on separate thread? Why is the term 'asynchronous' mentioned in the Java doc of flatmap?
@Engineerhoon
@Engineerhoon 3 жыл бұрын
Yes, using Reactive Schedulers. Watch this videos kzbin.info/www/bejne/e2jZgJt-j9Cbe5Y
@mubarakabbas
@mubarakabbas 4 жыл бұрын
Can i print inside the flatmap
@Engineerhoon
@Engineerhoon 4 жыл бұрын
You can but in that case output from your flatmap would be void/unit. Usually you should use reactive log method in the chain after flatmap.
@mubarakabbas
@mubarakabbas 4 жыл бұрын
@@Engineerhoon somehow it didnt work,
@Engineerhoon
@Engineerhoon 4 жыл бұрын
@@mubarakabbas Can you push it to github and share link?
Flatmap Operator - RxJava
26:10
CodingWithMitch
Рет қаралды 31 М.
The day of the sea 😂 #shorts by Leisi Crazy
00:22
Leisi Crazy
Рет қаралды 698 М.
So Cute 🥰
00:17
dednahype
Рет қаралды 63 МЛН
小丑妹妹插队被妈妈教训!#小丑#路飞#家庭#搞笑
00:12
家庭搞笑日记
Рет қаралды 36 МЛН
小丑在游泳池做什么#short #angel #clown
00:13
Super Beauty team
Рет қаралды 42 МЛН
Java 8 Streams | map () & flatMap() Example | JavaTechie
15:37
Java Techie
Рет қаралды 216 М.
#32 - RxJava - map vs flatMap
8:45
Mithu Roy
Рет қаралды 6 М.
flatMap with Flux in Project Reactor
12:14
Muhammed Shakir
Рет қаралды 6 М.
Do’s and Don’ts: Avoiding First-Time Reactive Programmer Mines
58:38
Streams. Метод flatMap(прокачанная Java)
8:05
Програмания
Рет қаралды 8 М.
Java Stream Flatmap : Learn Java Streams Flatmap vs Map
13:40
Shane Crouch - The Coding Zoo
Рет қаралды 6 М.
The day of the sea 😂 #shorts by Leisi Crazy
00:22
Leisi Crazy
Рет қаралды 698 М.