News for hackers. Stuff that matters.
Re:How We Manage a Million Push Notifications an Hour by fourier76 on Thursday August 29, 2019 @06:46PM (#20834459)
What if you get one push event on the first second, and then 999,999 on the last second? Still one million per hour. Don’t assume the events are evenly distributed. I see this a lot on HN. Yes, 1,000,000 divided by 3600 is indeed about 278, but why would we assume it was 278 notifications exactly every second?
Re:How We Manage a Million Push Notifications an Hour by pkaye on Thursday August 29, 2019 @06:57PM (#20834520)
Then they should have said they can handle a million push notifications a second.
Re:How We Manage a Million Push Notifications an Hour by fourier76 on Thursday August 29, 2019 @07:49PM (#20834776)
That doesn’t make sense?
Re:How We Manage a Million Push Notifications an Hour by basilgohar on Thursday August 29, 2019 @07:59PM (#20834822)
I think very few people, even on Hacker News, are so pedantic to argue strongly that someone is lying when they call 999,999 notifications in one second "a million".
Re:How We Manage a Million Push Notifications an Hour by nwallin on Thursday August 29, 2019 @09:46PM (#20835323)
Queue it. It's not particularly urgent that push notifications go out instantaneously. A 99th percentile latency of 5 minutes is fine.
Re:How We Manage a Million Push Notifications an Hour by prebrov on Friday August 30, 2019 @01:48AM (#20836217)
Not if it’s your ride waiting for you in short-term parking space, or a food delivery person at your doorstep.
Re:How We Manage a Million Push Notifications an Hour by ModernMech on Friday August 30, 2019 @06:47AM (#20837381)
> or a food delivery person at your doorstep.

That's what doorbells are for.

Re:How We Manage a Million Push Notifications an Hour by mustardo on Friday August 30, 2019 @08:04AM (#20837727)
Haha I look forward to an IoT doorbell company blogging about how they send 2 million door bell rings per second
Re:How We Manage a Million Push Notifications an Hour by Alupis on Thursday August 29, 2019 @06:55PM (#20834513)
Nothing says you must handle them all at once though. You could queue and handle as your system allows... still reaching a 1 million per hour throughput.
Re:How We Manage a Million Push Notifications an Hour by fourier76 on Thursday August 29, 2019 @07:50PM (#20834779)
Sure, but just because the average is 278 per second doesn’t mean the events happen at that rate. Bursts are way harder to process, which is much more typical. But someone writes an article like “How We Handle X things every Y”, and inevitably someone does basic division and surmises that it shouldn’t be so hard.
Re:How We Manage a Million Push Notifications an Hour by RhodesianHunter on Thursday August 29, 2019 @10:02PM (#20835395)
> Bursts are way harder to process

They aren't though. There are very few use cases that aren't bursty, and a plethora of reliable queueing systems exist.

Re:How We Manage a Million Push Notifications an Hour by gnaritas on Friday August 30, 2019 @12:03AM (#20835887)
Queues eliminate bursts, bursts are not harder to process unless the response must by synchronous.