Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 814 Bytes

File metadata and controls

21 lines (17 loc) · 814 Bytes

Real Time Communications


Need of RTC -

When we want server to be automatically updated when we need Ex - Mobile app and Website updated when one is added Ex-Notion, Docs

Ways to solve this

  1. Use a polling system to send empty HTTP request every few seconds(But not optimal)
  2. Use Web Sockets
  3. Use WebRTC(Persistent connection between server)- When connection is created first request is always HTTP

Can use PostWOman(not Hopscotch) to connect to websocket

How to achieve Distributed Systems?

  1. Add all people of same room on same server (add a discovery engine which tell which server to connect)
  2. Add a Load Balancer which connects to all servers(add a Pub/Subs to send messages to all other people)