← All questions
System DesignHard· Multi-tenancy· Capacity Planning· Cost Optimization

You operate two tenants against one index: tenant A run...

Design should distinguish between fixed costs (memory/GPU capacity) and variable costs (compute per query). For high-volume tenants like A, dedicated hardware is efficient because fixed costs are amortized over high volume. For low-volume, bursty tenants like B, reserved hardware leads to high idle costs; shared or serverless infrastructure is more appropriate despite the potential for cold-start latency.

Code playground (Python)