Slow updates of follower count using GET-requests?

So I am slowly getting the hang of using ajax requests under jquery , but I noticed that
GET requests (see code) seem to take ages (~50s) to update follower count etc .

Is this normal ? If so , how come follower alerts like Nightdevs register followers/subs almost instantly ?
Thanks for the help :relaxed:

                url: '' + channel_name +'/follows' ,
                type: 'GET',
                dataType: 'jsonp',
                contentType: 'application/json',
                mimeType: 'application/vnd.twitchtv.v2+json',
                success: function(json_result) {

I’m sure Night will correct me. But the Night follower updater, on a decent hit gets a nice chunk of followers to work thru (on the dropdown/popup) so by the time it’s finished animating them all, a nice new stack is ready.

But Twitch advises that you shouldn’t be hitting more than once per minute on a given end point, as the end point is “static” for that minute and updates once per minute or so anyway. Fugi posts about the “cache” here

Subscribers updates in real time as Night is polling Twitch chat for the “x has subscribed” message in chat.

I have seen the same behaviour you describe, (taking a minute to change) when polling the followers end point. It’s not a fault. It’s just how it works. And other trackers/larger channels just illusion quicker as large channels, get large stacks of new followers per minute, so a queue exists to process the stack.

This is essentially what is going on. As far as I’ve come to understand, Twitch now heavily caches the followers endpoint now due to the excessive use by alerters. Even so, my alerter polls once per 15 seconds. It’s possible that the longer caching is what is causing your alerts to show up slower.

I run a websocket TMI relay service that allows me to listen for new subscribers in chat. I don’t poll any endpoint for subscribers.

“Poll” was the wrong word by me. Apologies!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.