You are viewing content from a past/completed QCon -

Presentation: Asynchronous API With CompletableFuture

Track: Performance Mythbusting

Location: Bayview AB

Day of week: Monday

Slides: Download Slides

Level: Intermediate - Advanced

Persona: Backend Developer, Developer, Developer, JVM

What You’ll Learn

  • Performance tips for async particularly about java.util.concurrent.CompletableFuture.
  • Pitfalls to async development.

Abstract

Since Java 8, CompletableFuture has enabled asynchronous, future-based programming in Java and is one of the most powerful features suitable for creating asynchronous APIs. This presentation, based on real project experience, goes beyond the CompletableFuture public API. It reveals internal details and shows who stands to benefit from it for better performance.

Question: 

What do you do day-to-day?

Answer: 

Making things faster is my primary goal. Not only by measuring not only providing some performance guidance, but also working on different projects.

Question: 

What is your motivation for this talk?

Answer: 

At some moment I decided to make a presentation which will show the real performance job - how I took some project (It was new HttpClient appeared in Java9) and worked on its performance from scratch. The presentation become too big, so I split it into two parts: performance of synchronous API and performance of asynchronous. I think that problems which I discovered, how I improved will be interesting for the audience.

Question: 

Who should come to your talk?

Answer: 

Intermediate to advanced Java developers who want to understand how async architectures and development strategies work.

Question: 

What can people come take away from this talk?

Answer: 

Learning how to properly use async and CompletableFuture class to develop reliable fast code.

Question: 

What keeps you up at night?

Answer: 

What bothers me is the fact that technology is changing quite fast and how fast we should run or just adjust our tools our current tools and methodologies for new technologies for example.

Even a couple years ago everybody start talking about cloud etc. and nobody knows how to properly measure and estimate performance inside clouds.

Speaker: Sergey Kuksenko

Java Performance Engineer @Oracle

Sergey Kuksenko is a Java Performance Engineer at Oracle working on a variety of Java and JVM performance enhancements. He joined Oracle in 2010 and OpenJDK/OracleJVM is the third JVM in his experience. He started working as Java Engineer in 1996 and as Java Performance Engineer in 2005. He has had a passion for exploring how Java works on modern hardware.

Find Sergey Kuksenko at

Last Year's Tracks

  • Monday, 16 November

  • Inclusion & Diversity in Tech

    The road map to an inclusive and diverse tech organization. *Diversity & Inclusion defined as the inclusion of all individuals in an within tech, regardless of gender, religion, ethnicity, race, age, sexual orientation, and physical or mental fitness.

  • Architectures You've Always Wondered About

    How do they do it? In QCon's marquee Architectures track, we learn what it takes to operate at large scale from well-known names in our industry. You will take away hard-earned architectural lessons on scalability, reliability, throughput, and performance.

  • Architecting for Confidence: Building Resilient Systems

    Your system will fail. Build systems with the confidence to know when they do and you won’t.

  • Remotely Productive: Remote Teams & Software

    More and more companies are moving to remote work. How do you build, work on, and lead teams remotely?

  • Operating Microservices

    Building and operating distributed systems is hard, and microservices are no different. Learn strategies for not just building a service but operating them at scale.

  • Distributed Systems for Developers

    Computer science in practice. An applied track that fuses together the human side of computer science with the technical choices that are made along the way

  • Tuesday, 17 November

  • The Future of APIs

    Web-based API continue to evolve. The track provides the what, how, and why of future APIs, including GraphQL, Backend for Frontend, gRPC, & ReST

  • Resurgence of Functional Programming

    What was once a paradigm shift in how we thought of programming languages is now main stream in nearly all modern languages. Hear how software shops are infusing concepts like pure functions and immutablity into their architectures and design choices.

  • Social Responsibility: Implications of Building Modern Software

    Software has an ever increasing impact on individuals and society. Understanding these implications helps build software that works for all users

  • Non-Technical Skills for Technical Folks

    To be an effective engineer, requires more than great coding skills. Learn the subtle arts of the tech lead, including empathy, communication, and organization.

  • Clientside: From WASM to Browser Applications

    Dive into some of the technologies that can be leveraged to ultimately deliver a more impactful interaction between the user and client.

  • Languages of Infra

    More than just Infrastructure as a Service, today we have libraries, languages, and platforms that help us define our infra. Languages of Infra explore languages and libraries being used today to build modern cloud native architectures.

  • Wednesday, 18 November

  • Mechanical Sympathy: The Software/Hardware Divide

    Understanding the Hardware Makes You a Better Developer

  • Paths to Production: Deployment Pipelines as a Competitive Advantage

    Deployment pipelines allow us to push to production at ever increasing volume. Paths to production looks at how some of software's most well known shops continuous deliver code.

  • Java, The Platform

    Mobile, Micro, Modular: The platform continues to evolve and change. Discover how the platform continues to drive us forward.

  • Security for Engineers

    How to build secure, yet usable, systems from the engineer's perspective.

  • Modern Data Engineering

    The innovations necessary to build towards a fully automated decentralized data warehouse.

  • Machine Learning for the Software Engineer

    AI and machine learning are more approachable than ever. Discover how ML, deep learning, and other modern approaches are being used in practice by Software Engineers.