Victor

@v1co
0 Followers
7 Following
3 Posts
Full stack developer • Doing iOS reverse engineering on my spare time

@SeanOMik I'm not sure unique is possible there on a 8 characters (certainly alphanum). I would take inspiration from Discord redeem code or server invite code. Just random string backed with database, generate, ensure it does not exists yet in database. Limit the code duration to free the database if you're going to have many codes.

As for the algorithm, one dumb algorithm I like to use is UUIDv4, remove dashes and substr. Not sure it's a good production algorithm tho.

@jean_dupont I'll look into it, thank you!

I'm trying to develop a HTTP forward proxy that can handle as much as connections as possible. My best try yet is raw TCP with Tokio and parsing HTTP, handling up to 12-15k connections per second.

Any idea to get even more? Right now looking at io_uring but most implementations in Rust are not maintained.

#rust #http