HTTP請求,HTTP長輪詢,WebSocket,伺服器發送的事件



在本視頻中,我們將學習HTTP請求,HTTP長輪詢,WebSocket,伺服器發送事件(SSE)。
系統設計系列播放列表:https://www.youtube.com/playlist?list=PLqOiaH9id5qtD7h8Zwu1abjKULtVq0nQA
WebSocket是客戶端和伺服器之間的持久連接。 WebSocket提供了雙向,全雙工通信通道,該通道通過單個TCP / IP套接字連接在HTTP上進行操作。 WebSocket協議的核心是促進客戶端和伺服器之間的消息傳遞。
伺服器發送事件(SSE):這是一種伺服器推送技術,使客戶端能夠從伺服器接收自動更新。

請訂閱!和喜歡。並發表評論。這就是使我們前進的動力。

需要更多教程嗎?探望我們:
網址:https://afteracademy.com
媒介:https://medium.com/afteracademy

在這裡與我們聯繫:
推特:https://twitter.com/after_academy
面子書:https://facebook.com/afteracademy

學習期間對我有用的參考資料:
-https://github.com/donnemartin/system-design-primer
-書籍:設計數據密集型應用程序:可靠,可擴展和可維護系統背後的大創意
-http://highscalability.com

#websocket #systemdesign #http。

6 comments
  1. For Slow internet/ Bad connection what should be used?
    http long Polling or WebSockets?
    For Platforms like live Chess games, where every second matters!!!

  2. Awesome! Thank for this video first of all 🙂
    Please help me with the following questions.
    Http Long polling :
    1. should the edge case of a change in Internet connection(on and off), be handled by the developer
    2. Is there any limit to the number of handshakes per day, if there is no response from the server in 24 hrs

    WebSocket:
    1. Since this is the best solution, the connection has to be established every time where there is connection change? (edge case to be handled?)

    Server-Sent Events:
    Can this solution be applied to cab applications and food delivery applications as well in addition the stock market example discussed?

Comments are closed.