Tumblr Engineering — New, Bigger Post IDs

1.5M ratings
277k ratings

See, that’s what the app is perfect for.

Sounds perfect Wahhhh, I don’t wanna

New, Bigger Post IDs

As some of you close watchers may have noticed, we recently updated the ID numbers for new posts on Tumblr to be huuuuuge. Post IDs were always 64-bit integers to us at Tumblr, but now they’re actually big enough to push into that bitspace. While this doesn’t change anything for anyone using the official Tumblr apps or website, it did cause some hiccups for third-party consumers using programming languages like Javascript, which support only 53 bits of precision for integers.

To help alleviate this, we’ve added a new field to our post objects via the Tumblr API called id_string, which is a string representation of the numeric post ID. You can use the value of this id_string instead of id in any request to the Tumblr API and it should work just the same. This is the same thing that Twitter did when they moved to big-number “snowflake” identifiers. Starting March 16th, you should see this new field whenever you encounter a post via the Tumblr API.

Why’d we change post IDs to be so huge? Some of you may have noticed there was quite a jump. We recently migrated Tumblr to a new datacenter, and as a part of that migration we updated the system that generates new post IDs. The new system generates much bigger IDs because it uses a different algorithm to generate them more safely.

If you run into trouble with this or don’t see it somewhere you need it, please contact Tumblr Support and we’ll take a look!

engineering post ids tumblr api api

See more posts like this on Tumblr

#engineering #post ids #tumblr api #api