Problems / AI products, medium

Video generation farm

Text-to-video takes about 20 s per clip on 40 GPUs; users request 3 clips a second.

Free to open. Runs in your browser, no sign-up.

Your goals

Success ≥ 99%, p99 ≤ 60 s.

The traffic

3 requests a second for 60 seconds: 100% request (reads).

The system

What each component does in this design, and what calls it. The simulator mimics each one from these settings.

ComponentIts job hereSettings
Load balancerLoad balancerTraffic enters here.Calls AI app.Layer 4 balancers route by IP and port; layer 7 balancers read HTTP and can route by path or header.–
AI appApp serviceLoad balancer forwards to it.Calls Video model.Little's law: throughput ≈ concurrency ÷ latency. 200 slots at 50 ms serve about 4,000 req/s.3 replicas × 500 slots · timeout 60 s
Video modelImage generation modelAI app calls it.Image generation takes seconds per image and runs on GPUs.40 slots

Hints

Try it first. Open one hint at a time if you get stuck.

Hint 1

3 × 20 s = 60 GPUs busy.

Hint 2

Find the red card first, then its capacity: slots ÷ seconds per request.

One way to solve it

Add video-generation capacity.

More ai products problems