Reactive Programming and Java 8 Completable Futures

preview_player
Показать описание
This video explains the key principles of the reactive programming paradigm and describes how Java 8 completable futures map onto this paradigm.
Рекомендации по теме
Комментарии
Автор

0:28 reactive programming model
0:59 what is reactive programming
1:42 4 key principles of reactive programming
1:55 *responsive* - 2:00 rapid & consistent response time
2:02 the opposite is *batch*
2:38 reason for being responsive: the application wants quick feedback
2:57 another thing you might want to do: have an upper-bound
3:35 resilient - 3:39 the system remains responsive even in the face of failure
4:36 elastic - have the system respond even as the work loads vary 4:41 especially as the work load goes up, 4:48 possible auto-scale performance
5:07 message-driven
5:29 more of implementation detail - 5:32 we want to be able to pass message around between components in an *asynchronous* way in order to keep them *loosely-coupled*, *isolate them*
5:51 you don't really care what core or what computer the work runs on
6:09 how does *CompletableFuture* matches all those 4 principles
6:30 *responsive* -
*CompletableFuture* avoids blocking the user code
8:01 void changing between threads
10:23 resilient
10:31 by using exceptions
11:50 elastic
12:26 message-driven

ruixue
Автор

13:33 *Java 8 has support reactive programming through CompletableFuture*
13:37 Java 9 goes one step further
15:22 comparing reactive programming with other programming paradigms
16:26 streams

ruixue