1. Learn
  2. /
  3. Courses
  4. /
  5. Optimizing Code in Java

Connected

Exercise

Implementing an asynchronous data processing pipeline

You're building an analytics dashboard that needs to fetch user data and activity logs from separate services, then process them to create a user summary. This operation should be performed asynchronously to keep your application responsive. You are tasked to implement this using CompletableFuture.

The UserData and UserSummary classes have been preloaded for you.

Instructions

100 XP
  • Add fetching user data in the CompletableFuture.
  • Add processing user data in the CompletableFuture.
  • Add exception handling in the CompletableFuture.