Hacker News new | ask | show | jobs
by seydor 921 days ago
Why not just an SMTP extension. Send notifications via email, which expire after X seconds. No need to reinvent the mail
2 comments

Because such a protocol has to be designed with battery efficiency and mobile data usage in mind. Typical message should be no more than 1 byte.

I like Pushover's protocol design: <https://pushover.net/api/client#websocket>

The interesting part is not in sending the messages but in receiving them. How are you going to fetch that email?
IMAP IDLE?
Yes. And then as with that solution, in many cases it doesn’t work and you have to fall back to regular polling. If you remember to detect that the connection has dropped. And then the testing defeats the purpose because it wakes up the radios.

So now you’ve packaged the problem in a new layer that doesn’t solve anything but creates new problems.

The concept of an open connection waiting for the server to say anything is not novel or special, it just, as we already know, doesn’t really work reliably, you have to do more work to make it reliable.