Hacker News new | ask | show | jobs
by shagie 1097 days ago
Feel free to ignore that then.

The push notification server is described doing 8640 requests per day (1 call every 10 seconds) for each user.

An account can sign up multiple users ( https://apolloapp.io/notifications-faq/ )

> How many accounts/devices does this work with?

> There's no limit (but please be reasonable). If you have a main account and five alternate accounts, and an iPhone and two iPads, you can get notifications for all of those accounts on all of those devices for the same fee.

With 50k subscriptions that he needs to refund the floor on this is that he's doing 432M requests per day for the push notification server.

If that is one request every 6 seconds instead of 10 (as described in the 1.3 release) that is 720M requests per day for a floor.

The backend server for Apollo handling push notifications is doing something with some consistent load that is likely showing up on the same API key as the mobile client app is.

When the backend server and the mobile app are taken in aggregate, the description that Reddit sees about how many requests per day the API key for Apollo makes is in rough agreement with those floor numbers plus what one would expect a mobile human user the doing.

I suspect that with the outage that the push notification server was scaled back from 1 request every 6 seconds to 1 request every 10 seconds because the backoff for the push notification server was not working leading to an excess of calls and an increase in the server load and egress causing an increase in the amount the node was going to get billed at. I admit that is pure speculation.

From Reddit's point of view, they only see "this request was made with this API key in the header" and can't distinguish mobile app calls from push notification server calls. When they say "this is how many requests that Apollo is making" they are looking at that number. When Christian is saying "Apollo is making X calls per day on average" he is referring to the mobile app requests (which are more efficient than Reddit's mobile app) and not including other uses of the API key.