Neil 

@neildev
1 Followers
0 Following
7 Posts
Welcome to my software development journey. Things I code, things I learn, and sharing it to people in the internet! ⌨️
Checking vibed PRD for feature building. see how it goes.
Happy Friday and now vibe coding time 😍 #vibecoding #ai
I hope that this day I receive a great news. Hoping everyone else too!
And for answering "how do you generate the short url" I'd say, generate a unique, time-ordered Snowflake ID per URL, then Base62-encode it into a 7-character URL-safe string.

Just checking out some common system design questions out there.

Here's my "build a URL shortener" design system. The image could be improved, but I tried answering it in one shot.

This system doesn't consider the analytics side, and the system is covering the creation of a short URL and the visiting of the short URL. #systemdesign

TL;DR for rate limiting algo.

Fixed window - simple needs and predictable window resets

Sliding window - traffic smoothing at high volume

Token bucket - burst support and memory efficient. Can be difficult to tune out

Now, one you picked best to a certain scenario, choose a sensible keys.

Visitor(aka unauth) - IP address, device fingerprint, uniq installation ID

Apps - key on userID

API - key on API key

I’ve just created my Mastodon account! I’ll be sharing my coding projects, learning experiences and some fun and interesting things I find. :p #mastodon