Agora RTC vs RTM: Understanding the Difference and When to Use Each
1. What is Agora RTC and Agora RTM?
Developers building consultation, gaming, or streaming applications often confuse Agora's two core services: Agora RTC (Real-Time Communication) and Agora RTM (Real-Time Messaging).
While both leverage Agora's Software-Defined Real-time Network (SD-RTN), they serve fundamentally different network protocols and payload types:
- Agora RTC: Optimized for high-bandwidth, sub-second latency audio and video media packet streaming.
- Agora RTM: Optimized for ultra-lightweight, reliable text messaging, presence tracking, and custom signal events.
2. Detailed Feature Comparison
| Feature | Agora RTC | Agora RTM |
|---|---|---|
| Primary Data Type | Raw Audio & Video Media Streams | Text, JSON Signals, Channel Attributes |
| Transport Protocol | UDP with adaptive FEC | TCP / WebSocket connection |
| Bandwidth Footprint | High (~500 Kbps - 3 Mbps) | Extremely Low (< 10 Kbps) |
| Core Use Cases | Video Calling, Live Broadcasting | Live Chat, Mute Signals, Presence |
3. How Both Work Together in Production
In production applications (such as real-time consultation platforms), RTC and RTM are paired together:
1. Signaling Phase (RTM): User A sends an RTM invitation message to User B containing the RTC room name and session parameters.
2. Media Stream Phase (RTC): Both users join the Agora RTC channel to begin video streaming.
3. In-Call Actions (RTM): Mute requests, chat messages, or gift sending are passed over RTM without interrupting the RTC video feed.
4. Summary
Use Agora RTC for media streaming and Agora RTM for signaling, text chat, and presence state synchronizations.