News for hackers. Stuff that matters.
Re:IPv4 Turf War by clayloam on Saturday September 10, 2022 @05:18PM (#32794649)
Hey I made this!! Happy to see it getting attention. Feel free to ask me anything!
Re:IPv4 Turf War by PaoloBarbolini on Saturday September 10, 2022 @05:21PM (#32794672)
Why are you doing a separate request for every /8? I feel like this would be the first thing that would kill the site, if it weren't for the fact you're on HTTP, the browser is talking HTTP/1.1, so it only does 6 concurrent requests per domain.
Re:IPv4 Turf War by jart on Saturday September 10, 2022 @05:40PM (#32794793)
If you want to monitor how well the server holds up to the hug of death, check out its http://ipv4.games/statusz page. For example, you could poll that and calculate (or chart) how many messages per second it's handling.
Re:IPv4 Turf War by clayloam on Saturday September 10, 2022 @05:23PM (#32794686)
I wanted to see if the server could handle being slammed with requests like that :) but yeah collapsing it into one request would be a lot better. I’ll probably do that soon
Re:IPv4 Turf War by jart on Saturday September 10, 2022 @05:35PM (#32794752)
In case anyone's wondering, I wrote the web server clayloam is using. It's called redbean. It started off as just my own hobby project last year, here on Hacker News, but it grew into something more and lots of people loved it enough to help. So it's very exciting to see it being used in production to handle hundreds of http messages per second. https://redbean.dev
Re:IPv4 Turf War by mike_d on Saturday September 10, 2022 @07:32PM (#32795428)
This is really awesome. Finally a game I am good at.
Re:IPv4 Turf War by clayloam on Saturday September 10, 2022 @08:17PM (#32795679)
I am very curious how you managed to hold more than half the blocks for a bit!!
Re:IPv4 Turf War by wyattwest on Saturday September 10, 2022 @09:21PM (#32796018)
Here at Spur, we're speculating Mike used residential proxies :)
Re:IPv4 Turf War by mike_d on Saturday September 10, 2022 @10:13PM (#32796272)
Ssshhh. Nobody is supposed to know about either of those things :)
Re:IPv4 Turf War by Rasbora on Saturday September 10, 2022 @08:27PM (#32795739)
Coming for your crown >:D