FLAVORS OF CONCURRENCY IN JAVA [SPRING IO`16]

FLAVORS OF CONCURRENCY IN JAVA [SPRING IO`16]

Writing concurrent code that is also correct is unbelievably hard. Naturally, humanity has developed a number of approaches to handle concurrency in the code, starting from basic threads that follow the hardware way to do concurrency to higher level primitives like fibers and work-stealing solutions. But which approach is the best for you? In this session, we'll take a look at a simple concurrent problem and solve it using different ways to manage concurrency: threads, executors, actors, fibers, monadic code with completable futures. All these approaches are different from the simplicity, readability, configuration and management point of view. Some scenarios are better modelled with threads, while sometimes you're better off with actors. We'll discuss the benefits of each approach and figure out when it's worth pursuing in your project.

5d01eb7205b787b5991db85a11ee5e68?s=128

Oleg Šelajev

May 19, 2016
Tweet