3 ms·
Hey J. If you wouldn't mind sharing, I'm really curious about what made the direct messaging engine so tricky/special.
by robfitz 17y ago
Hey J. If you wouldn't mind sharing, I'm really curious about what made the direct messaging engine so tricky/special.
- jmathai 17y agoMainly the rate limiting and errors. Rate limiting: Twitter rate limits these calls but for direct messaging they don't provide any information as to what the overage state is. So, if you get an "over" response you don't know if you should wait an hour or a minute to try again. When sending messages out in high volume you can't just pound their servers, nor would they appreciate that. Errors: Twitter's API throws a lot of errors. A lot of them aren't even valuable errors (like 404 or 403 but rather 500s). They will also implement things in an ad-hoc manner to deal with issues on their end, for example introducing 302 redirects without much notice.