For a telehealth app adding ten-person video visits, how would you choose between Cloudflare RealtimeKit, building on the Realtime SFU directly, and running your own media server?
answer
- who writes signaling and room state
- per minute versus per gigabyte
- what still lands on your team
- regulated data and regions
basics
~20 sPick RealtimeKit when you want meetings fast, paying per participant minute. Pick the Realtime SFU when you need control over tracks and own signaling, paying for egress. Self-host only when a hard requirement neither can meet justifies running media servers.
solid answer
~40 sStart from what the team must build and operate. **RealtimeKit** gives meetings, presets, waiting rooms, UI, recording and transcription, with TURN configured for you, billed about $0.002 per audio/video participant minute. You own users, scheduling and who gets a token. The **Realtime SFU** exposes sessions and tracks: you write signaling, room state, discovery, permissions and TURN credential issuance, and pay $0.05 per GB of egress after a 1,000 GB monthly allowance shared with TURN, with publishing free. In both, Cloudflare runs the media servers and you pick no region. A **self-run media server** buys full control of placement and processing, at the cost of capacity planning, TURN, patching and on-call. For a clinical product, also settle compliance and data-handling terms with Cloudflare before choosing.
go deeper
Recall that RealtimeKit is the meeting SDK layer and the Realtime SFU is the raw sessions and tracks layer under it.
Explain what each option leaves to your backend: signaling, discovery, permissions, TURN issuance.
Model the bill both ways for your real call shapes, including simulcast and pulled-track choices, before committing.
Own the decision record: build-versus-buy, data placement and compliance terms, on-call scope and the trigger for revisiting it.
## The decision A telehealth product is adding group visits of up to ten people: clinicians, patients, sometimes an interpreter. Some clinicians sit behind hospital firewalls. Three options are on the table, and none is free of work. The choice is about **which work your team keeps** and **how the bill scales**. ## What each option leaves to you | Concern | RealtimeKit | Realtime SFU directly | Self-run media server | | --- | --- | --- | --- | | Media servers, regions, scaling | Cloudflare | Cloudflare; no region to pick | You | | Signaling and room state | RealtimeKit | You (for example a Worker plus one Durable Object per visit) | You | | Roles and permissions | Presets plus your backend | Entirely your backend | You | | TURN | Configured for you | You issue Cloudflare TURN credentials | You run or buy TURN | | UI, waiting room, chat, polls | Provided | You build | You build | | Recording and transcription | Product features (recording to R2, transcription via Workers AI) | You build; WebSocket adapters can feed call audio to your own processing | You build | | Control over individual tracks | Through SDK settings | Full: you choose every push, pull and simulcast layer | Full | ## How the bill scales - **RealtimeKit** charges per participant minute while a session is active: $0.002 for an audio/video participant and $0.0005 for audio-only (set by the preset's meeting type). Recording or RTMP/HLS export adds $0.010 per minute. A 30-minute, ten-person visit is 300 participant minutes, about $0.60 before recording. - **Realtime SFU** charges only for **egress** from Cloudflare to clients, at $0.05 per GB, with the first 1,000 GB each month free and shared with TURN. Publishing into the SFU is free, even when nobody subscribes. In a ten-person call each participant receives up to nine streams, so the egress grows with participants times the tracks each one pulls. Pulling only the active speaker in high quality, and smaller simulcast layers for the rest, is the main lever. - **TURN** has the same $0.05 per GB rate and shares the allowance. Traffic between Cloudflare TURN and the Realtime SFU is not charged twice. - **Self-hosting** turns those lines into instance, bandwidth and people costs, plus capacity you must buy for peak, not average. Run your own traffic model before trusting either per-unit price. Depending on bitrates and how many streams each viewer pulls, per-gigabyte egress can land above or below RealtimeKit's per-minute price. After the free allowance, a viewer pulling nine streams at an assumed 1 Mbps each costs about $0.003 per minute in egress, and nine at 0.25 Mbps costs under $0.001. Any saving on the SFU is paid for in engineering time. ## Questions that usually decide it 1. **Is the meeting experience the product, or plumbing?** If visits are standard grid calls with a waiting room, RealtimeKit's presets and UI Kit remove months of work. 2. **Do you need unusual media handling?** That might be routing a patient's device stream to an analysis service, custom layouts or per-track policies. The Realtime SFU's explicit sessions and tracks, DataChannels and WebSocket adapters are built for that. 3. **Where may data go?** Cloudflare's China Network does not serve Realtime, and the SFU has no region selection. If a regulator or contract pins media to a specific facility, that is the strongest argument for self-hosting or for an explicit agreement with Cloudflare. 4. **What compliance terms do you need?** Health data brings legal obligations. Cloudflare answers compliance questions for Realtime through its compliance resources and enterprise account team, so settle the terms before launch, whichever option you pick. 5. **Who carries the pager?** Self-hosting means owning media server upgrades, TURN, capacity and incidents. RealtimeKit and the SFU leave you on call for your own signaling and backend only. ## A defensible default for this case - Start with **RealtimeKit**: presets for clinician, patient and interpreter, the backend adding participants only inside the appointment window, and recording into the team's own R2 bucket if visits are recorded. - Revisit the **Realtime SFU** when a feature needs control RealtimeKit does not expose, or when the per-minute bill at real volume clearly exceeds the cost of the engineering time. Rooms then become your Durable Objects, and TURN credential issuance becomes your Worker. - Keep **self-hosting** for a hard requirement neither product meets, written down with its cost. "We might need it someday" is not one. ## Governance Whatever the choice, the lead should own three standing rules: secrets stay server-side (the Cloudflare API token, the SFU App Secret and TURN keys), separate apps and keys per environment, and a monthly review of usage against the model, because per-minute and per-gigabyte bills drift in different directions as call patterns change.
- What would make you move a RealtimeKit product onto the Realtime SFU later?A feature RealtimeKit cannot express, such as custom routing of particular tracks, DataChannel control paths or media sent to a processing service, or a measured bill where per-minute pricing clearly exceeds per-gigabyte egress plus the engineering cost. Moving means taking over signaling, room state, permissions and TURN credential issuance.
- How do you cut Realtime SFU egress in a ten-person visit without hurting the clinician's view?Pull fewer and smaller streams. Pull high-quality video only for the active speaker or the clinician, use simulcast `preferredRid` to pull lower layers for thumbnails, and close subscriptions nobody displays. Publishing is free; you pay for what each viewer pulls.
- Which secrets must never reach the client in either Cloudflare option?The Cloudflare API token used for RealtimeKit's REST API, the SFU App Secret, and the TURN key's API token. Clients receive only participant auth tokens, or SDP and generated TURN credentials that your backend hands them after its own authorization check.
- RealtimeKit and the Realtime SFU bill the same way, per participant minute.
- The Realtime SFU charges for media published into it even with no subscriber.
- Choosing the Realtime SFU means Cloudflare also runs your rooms and permissions.
- A team can pin Realtime SFU media to one chosen region in its settings.
- Using a managed service settles a telehealth app's compliance obligations by itself.
Assumes Cloudflare Realtime pricing and products as of 2026-10-10, when the SFU, TURN and RealtimeKit shared the Realtime name that replaced Calls.