Lesson 25 / Unit 6: Production Operations
Hosting Costs
Compare achieved call-minutes, spare capacity and operating effort. A worked example shows why theoretical throughput understates hosting cost.
Price a hypothetical SFU node at a 550-call planning ceiling and the cost per call-minute looks tiny. Price the same fleet the way it actually runs (400-call cap, a spare node, quiet hours) and the figure is eleven times higher.
Both numbers come from the same machines. Only one of them belongs in a build-versus-buy memo.
This lesson builds the per-minute cost of a self-hosted LiveKit fleet using explicit planning assumptions, applies the three adjustments that spreadsheets skip, and finds where it crosses a managed per-minute rate. We use a placeholder instance price throughout. Plug in your own.
Cost Scope
Cost per call-minute for one tier is the instance’s hourly cost divided by the call-minutes it carries in that hour (calls per node x 60), taken at your operating point with headroom included, never at the theoretical ceiling.
tier cost per call-minute = instance hourly cost / (calls per node x 60)Using the fleet shape from the capacity model:
- SFU nodes, at a capacity you have verified for your configuration.
- Worker nodes, capped by CPU at their measured density.
- Fixed overhead: the SIP service, Redis and TURN, which have fixed components but can also scale with traffic.
- Bandwidth, which for a media plane is a first-class line. Egress on relayed and carrier-bound audio adds up at exactly the scale where self-hosting starts winning.
The LiveKit deployment guide says the same thing from the other side: server scalability is bound by CPU and bandwidth.
Each tier contributes its hourly cost over the calls it carries and the adjustments raise the figure, and only once the result is priced per achieved call-minute do we compare it against the managed rate.
Worked Example
Here is the SFU tier alone, with a hypothetical instance price of $X per hour and the 500-call peak from the capacity lesson. All capacity values here are worked-example assumptions, not a certified LiveKit limit. Average concurrency is also hypothetical: 150 calls across the day.
| Pricing basis | Arithmetic | Cost per call-minute |
|---|---|---|
| Port ceiling, one node | X / (550 x 60) | X / 33,000 |
| Operating cap, one node | X / (400 x 60) | X / 24,000 |
| Peak fleet with a spare (3 nodes, 500 calls) | 3X / (500 x 60) | X / 10,000 |
| Same fleet at average load (150 calls) | 3X / (150 x 60) | X / 3,000 |
The first row is the number a quick spreadsheet produces, and the last row is the one you pay. Same instance, same price, eleven times apart.
Now repeat for the worker tier with your CPU density, add the fixed overhead and bandwidth per hour, and divide the total by the same achieved call-minutes. Nothing else about the method changes.
Utilisation Costs
Each of these is a place where a cost model quietly flatters itself.
- Utilisation. A fleet provisioned for peak runs below it most of the day. Divide by achieved call-minutes, never by capacity. That is the jump from the third row to the fourth above.
- Redundancy. The extra node you run so that one can fail. In the example it is the third SFU node, and it turns X / 24,000 into X / 10,000 at peak.
- Engineering time. The people who operate all of it, the on-call included, priced at what you actually pay for them. Spread their monthly cost over your monthly call-minutes like any other fixed line.
The most common self-hosting mistake we see is not technical: it is a utilisation assumption off by a factor of three. Run the calculation with measured slopes and real utilisation before renting hardware. Rerun it quarterly after.
Break-Even Volume
Self-hosted crosses the managed rate at the monthly volume where the two per-minute costs meet. A flat managed rate is an assumption in this example, while yours falls with utilisation because most of it is fixed.
With letters instead of prices:
F = your fixed monthly cost (all instances, redundancy, overhead, engineering)v = your variable cost per minute (mostly bandwidth)M = the managed rate per minutem = monthly call-minutes
self-hosted cost per minute = F / m + vcrossover volume = F / (M - v)This equation requires M > v, equal scope and fixed fleet size. If M ≤ v there is no positive crossover in this model. Capacity expansion makes F change in steps, and managed tiers or commitments can change M. Control, data boundaries and engineering opportunity cost remain separate considerations. The decision itself, and why Cloud first is usually the cautious path, is in LiveKit Cloud vs self-hosted.
To fill in X for your region, use your provider’s published instance rates, for example the EC2 on-demand pricing page, or your committed-use rate if you have one.
Build or Buy
This memo (your fleet, your slopes, your traffic shape) is the build-versus-buy deliverable, and sometimes it says buy. A capacity model that only ever recommends building is selling hardware. The same arithmetic applies to serving your own STT and TTS models, all the way down.
If you want this model built on your own measurements, it is part of what a self-hosted voice agent assessment covers.
Common questions
How do you calculate self-hosted LiveKit cost per call-minute?
Add up the hourly cost of every tier (SFU, workers, SIP, Redis, TURN), bandwidth, redundancy nodes and the engineering time to run them, then divide by the call-minutes you actually carry per hour. Dividing by capacity instead of achieved call-minutes is the most common way the figure comes out too low.
When is self-hosting LiveKit cheaper than a managed service?
When sustained monthly minutes push your amortised cost per minute below the managed rate. There is no universal minute threshold. Use the same scope and measured utilisation on both sides; model calls, telephony and operations can dominate.
Why does utilisation matter so much for voice infrastructure cost?
A fleet is provisioned for peak and runs below it most of the day, so its fixed hourly cost is spread over fewer call-minutes than its capacity suggests. A utilisation assumption off by a factor of three makes the per-minute cost off by the same factor.
We do this work for teams shipping voice agents: Self-Hosted Voice Agent .
Edit this lesson on GitHub ↗Discussion
Questions, corrections and war stories welcome. Sign in with GitHub to comment.