(no title)
spartango | 11 years ago
Flipping through the documentation, the RESTful API seems to only allow for polling for new messages (deltas via the sync protocol[1]).
While I'm glad that there is a delta-API, I'm concerned that this doesn't support proper "push" notifications for new messages. This is a valuable feature of Exchange and IMAP[-IDLE](where supported).
I understand that the heterogeneity of these push protocols makes it difficult to expose a push API, but it seems an important feature of mail clients.
Similarly, it seems that REST is not quite the best protocol for the "push" piece of modern email. I suppose long-polling support on the Sync API would work fine, however.
grinich|11 years ago
Short answer: we're working on it.
Any pushing-based API really needs to gracefully degrade to polling in case messages are lost. So we decided to first make sure the semantics of the delta sync API were great.
Under the hood we actually use features like IDLE or MS Exchange Ping, so our push updates will also be immediate. The benefit of the delta sync API is that you can query deltas (obviously), which isn't supported by IMAP.
jkarneges|11 years ago
You might check out https://fanout.io/ which makes it easy to create realtime APIs. (disclaimer: I'm from Fanout)
andyfowler|11 years ago
Agreed, that push is one of the more important components to a service like this.
[1]: https://github.com/inboxapp/inbox/blob/master/inbox/docs/api...
spartango|11 years ago
I'm glad they're thinking about it, though!
grinich|11 years ago