hey guys , just wanted to check on few things about exploring ways to add real time data into Next.js app (for use cases like live commerce or interactive sessions).
- Most solutions I’ve come across either have higher latency (
HLS/DASH)
- Or require complex infra setup.
I recently came across WebRTC-based approaches that claim sub-250ms latency, which seems more suitable for real-time interaction. while researching i came across Red5 ,i Would love to hear your thoughts or alternatives.
While Red5 is a solid choice for low latency, you should evaluate the infrastructure overhead of managing your own clusters. If sub-250ms latency is the hard requirement, look into WHIP (WebRTC-HTTP Ingestion Protocol) and WHEP (WebRTC-HTTP Egress Protocol) compliant services. These protocols standardize how WebRTC streams are ingested and egressed, potentially reducing the ‘complex infra setup’ you mentioned. Alternatives like Millicast provide managed WebRTC stacks that abstract the TURN/STUN and SFU management, which can be integrated into Next.js via client-side SDKs.