No video

Devoxx Poland 2016 - Christopher Batey - The Java developers' guide to asynchronous programming

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

Devoxx Poland

Devoxx Poland

8 жыл бұрын

Blocking/synchronous programming has been the norm in Java. However this programming model has a major limitation: it requires one thread per concurrent request. This means that the number of requests you can process concurrently cannot exceed the number of threads, which limits scaling. This talk will explore how an asynchronous programming model can be used to avoid this limitation.
After an introduction to asynchronous design, there will be a live coding session where we will build an example service that makes concurrent calls.
We will cover the following tools:
- The Java Future
- New in Java 8: The CompletableFuture
- RxJava Observables
- The async Servlet, Spring and JAX-RS APIs
- The Ratpack Promise
The see the following patterns:
- Merging multiple calls into a single result
- Returning a result when a subset of multiple calls return without blocking waiting for the rest (e.g. saving an audit log without blocking the user request)
- Executing multiple calls and creating a result from the one that returns first
By the end of the session you should be aware of the popular tools you have for non-blocking programming in Java and when and why you should use them.

Пікірлер: 6
@manishsingh-hk6ol
@manishsingh-hk6ol 6 жыл бұрын
This was really awesome, he has made things very clear with live demo.
@ZackIOS
@ZackIOS 6 жыл бұрын
Thanks ! That's much clearer now !
@ggin2008
@ggin2008 7 жыл бұрын
Excellent Stuff.. Thanks so much !!
@digigoliath
@digigoliath 4 жыл бұрын
Great stuff. Very useful. I subbed.
@yousifucv
@yousifucv 6 жыл бұрын
What's the code behind each of his services' ...Completable( ) calls? (Like channels.lookupChannelCompletable) They all return CompletableFutures but what are they doing before that? Submitting them to an Application-scope ExecutorService?
@Anotender
@Anotender 6 жыл бұрын
github.com/chbatey/java-async-talk/blob/master/standalone/src/main/java/info/examples/batey/async/thirdparty/UserService.java There is a UserService code from his Github, hope it's what you were looking for.
Thinking In Parallel by Stuart Marks and Brian Goetz
1:00:04
The Joker saves Harley Quinn from drowning!#joker  #shorts
00:34
Untitled Joker
Рет қаралды 38 МЛН
哈莉奎因以为小丑不爱她了#joker #cosplay #Harriet Quinn
00:22
佐助与鸣人
Рет қаралды 10 МЛН
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 16 МЛН
Tomasz Nurkiewicz - CompletableFuture in Java 8, asynchronous processing done right
1:01:10
Concurrency Concepts in Java by Douglas Hawkins
44:22
Devoxx Poland
Рет қаралды 50 М.
Creator of git, Linus Torvalds Presents the Fundamentals of git
1:10:15
Developers Alliance
Рет қаралды 73 М.
Java 8 to 18: Most important changes in the Java Platform
31:24
Comparing different concurrency models on the JVM
53:32
Parleys
Рет қаралды 4,4 М.
Bare metal Java • Jarosław Pałka • Devoxx Poland 2022
1:49:38
The Joker saves Harley Quinn from drowning!#joker  #shorts
00:34
Untitled Joker
Рет қаралды 38 МЛН