logoalt Hacker News

notpushkintoday at 7:35 AM1 replyview on HN

Hey, welcome to HN!

Reading “hex” pointing to a clearly base62-ish string was a bit interesting :-)

Also, could we shard based on a short hash of account_id, and store the same hash in the token? This way we can lose the whole api_key → account_id lookup table in the metashard altogether.


Replies

vjay15today at 9:11 AM

Hello thanks for reading through my blog :D Coming to your question, yes! that is possible I mentioned it in my second approach!

But when I mentioned it to my senior he wanted me to default with the random string approach :)