Polling AJAX is tricky. If the next interval triggers before the last AJAX request is complete, your app is doomed!! This creates a domino effect where your queue for requests fill up faster then it can complete. Your queue will NEVER finish… similar to an infinite loop… Continued here
About Basem Emara
Basem is a mobile and software IT professional with over 15 years of experience as an architect, developer, and consultant for dozens of projects that span over various industries for Fortune 500 enterprises, government agencies, and startups. He has been consistently relied upon to identify root cause and solutions of business problems by successfully implementing battle-tested techniques, strategy, and architecture that scale for teams and production.