It is fun. I work at a website and we started getting ddos attacks. For a long time we just ran with the bigger pipe and servers scenario. At one point i was able to handle over 100gbit/4M new connections per second. But usually the next big attack would be double that.
In the end we decided to hide behind a CDN which recently blocked a 10M http-requests/s attack from over 300,000 source ips which would have brought us down.
Honestly the big encloudening of the internet for me feels like a coordinated effort to get everyone off their own local compute and into a data center where oops your subscription just tripled
We still have our own datacenters (well, racks hired in a colocation). But for the 'entry' we just had no choice anymore. There was no way we could keep up with our own transits/isp's/network/waf and bot detection. We had to buy that from a big company
I can recommend making a chess engine to anyone who likes recreational optimization. Quite simple to implement a very basic version (some pointers: negamax to fixed depth, alpha beta pruning, material count eval). And from there, it's a long tail of various optimizations and improvements you can tinker with.
They are micro services that you use to power your app like your custom payment gateway service for your app.
You can diagree but the fact that redis is used for fast cache which you can utilize a table inside your database for cache but it'll be slow. So you're using extra service for your cache in order to be proper.
The term micro service exists so you can scale smth horizontally, you deliberately split your backend into parts based on what they do, and replicate them on many servers.
I wouldn't call a program that I do not own a micro service, it's not smth I split up and it's not smth I can modify (w/o forking).
Sure, I could host redis across many servers and use it in cluster mode. But that would be a separate micro service architecture, external to mine.
Ah yes, the portion of the system which is serving over 250 million users does not require any optimization because you personally don’t notice it in your task manager.
I think this post is about the fact that there a bunch of AI generated/created/assisted games on steam that no one is playing.
It's not about the technical ability of those systems to handle concurrent users. They're just so unpopular they don't even have 10 people trying to play them at the same time.
IMHO Rust performance and safety are somewhat overstated.
The rewrite-in-Rust exercises that I've examined are usually either plagued with unsafe, or plagued with Rc/Arc/Mutex (which might have an even higher cost than an honest GC), plus sudden latency spikes on drop in surprising places. Also, let's not forget that forget is a "safe" operation in Rust, so leaks and out-of-memory failures are not prevented by the compiler (which is a problem for embedded or long-running apps where OOM is just as fatal as a segfault).
178
u/iamdestroyerofworlds 10h ago
Sometimes the journey is the destination.
85
u/AnalTrajectory 7h ago
Am I having a stroke
86
u/deanominecraft 8h ago
sometimes its fun to optimise stuf, i optimized the server for a game with 0 players up to 270k requests per second and enjoyed doing it
and no, i did not use ai
17
u/PenguinKenny 4h ago
What the fuck is the first line trying to say
14
u/ArjixGamer 6h ago
It's not about how many users you could theoretically serve, it's about how much resources you use to serve those 10 users.
If it's super optimized, then you have even more resources for other services on that same server.
13
u/Xaeroxe3057 9h ago edited 9h ago
Very strange angle to take when this group includes names like Cloudflare, Anthropic, and Discord
1
u/ElvisDumbledore 4h ago
I think this post is about the fact that there a bunch of AI generated/created/assisted games on steam that no one is playing.
It's not about the technical ability of those systems to handle concurrent users. They're just so unpopular they don't even have 10 people trying to play them at the same time.
1
u/kaplotnikov 51m ago
IMHO Rust performance and safety are somewhat overstated.
The rewrite-in-Rust exercises that I've examined are usually either plagued with
unsafe, or plagued withRc/Arc/Mutex(which might have an even higher cost than an honest GC), plus sudden latency spikes on drop in surprising places. Also, let's not forget thatforgetis a "safe" operation in Rust, so leaks and out-of-memory failures are not prevented by the compiler (which is a problem for embedded or long-running apps where OOM is just as fatal as a segfault).-1
u/randomguy3993 7h ago
I have 100 concurrent users. Does that count?