How to scale up in Java

java, video-processing

Solution

Agree... threads should help to scale on single machine. If you want to scale across different machines - use Terracotta.

Problem

I have 100+ channels of video streams to process all at the same time. I need to capture the video, generate thumbnails, and serve them out as a web service. For the generation of thumbnail, I can use JMF etc.(I noticed there is another post talking about how to generate and access: better quality thumbnails from larger image files). But my concern is: how to scale? Java EE EJB or simply Java SE Threads? What's the cons and pros? How to scale horizontally using EJB? I am not that familiar with scalability issue, and I really appreciate your kind suggestions. Thanks.

Original source