DEV Community

Cover image for Solving Java Multithreading Challenges in My Google Photos Clone
Marco Behler
Marco Behler

Posted on

1 1

Solving Java Multithreading Challenges in My Google Photos Clone

In this video we want to turn our Google Photos clone from single-threaded to multi-threaded, to generate thumbnails much faster than before.

But there are a couple of challenges along the way. We'll learn that using Java's Parallel File Streams seems to be a buggy endeavor, so we'll fall back on good, old ExecutorServices.

But how many threads should we use to generate thumbnails? How can threads get in conflict with each other? How do we make our program fail-safe for threading issues?

Watch to find out!

Top comments (0)

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay