Implementing Better Polling for a Web App
This video builds on my last one which lays out the technique of polling from the client to get responses from a server that include potential updates. The example that's used is a very rudimentary chat-like app that allows clients to POST to the server. The lack of a "Push" protocol (no web sockets yet) was solved in a previous video by implementing interval based polling without regard for server down time or response errors. This video builds on that by improving the polling. Although I never implement true long polling on a per client basis, toward the end of the video, I do explore the idea despite the fact that I've never really written any long polling interfaces.
This video builds on my last one which lays out the technique of polling from the client to get responses from a server that include potential updates. The example that's used is a very rudimentary chat-like app that allows clients to POST to the server. The lack of a "Push" protocol (no web sockets yet) was solved in a previous video by implementing interval based polling without regard for server down time or response errors. This video builds on that by improving the polling. Although I never implement true long polling on a per client basis, toward the end of the video, I do explore the idea despite the fact that I've never really written any long polling interfaces.