How gopring/pdn-webrtc works
Main Components Identification
a) Core Components:
• Signal Server (signal/)
• Media Server (media/)
• PDN (Peer-Assisted Delivery Network) Server (pdn/)
• Broker System (broker/)
• Coordinator (coordinator/)
• Database Layer (database/)
• Metrics System (metric/)
Technical Details
Annotations for:
• WebRTC protocols (ICE, STUN, TURN)
• Socket.IO implementation
• Prometheus metrics flow
• Channel key authentication
Component Details
Signal Server:
• Controller and handler components
• Socket handling
Media Server:
• Stream management
• Connection handling
PDN Server:
• Peer management
• Super peer selection
• Fault recovery mechanisms
Broker:
• Channel management
• Subscription handling
Database:
• Different info types (channel, client, connection)
• Index structure
Metrics:
• Prometheus data collection
• Grafana visualization