News for hackers. Stuff that matters.
Re:Reddit Migrates Comment Back End from Python to Go by drowning_sushi on Saturday November 29, 2025 @03:03PM (#46090320)
This is very subjective. Using Python influences your architecture in ways you would not encounter with other languages.

I maintain a critical service written in Python and hosted in AWS and with about 40 containers it can do 1K requests/sec with good reliability. But we see issues with http libraries and systemic pressure within the service.

Re:Reddit Migrates Comment Back End from Python to Go by nly on Saturday November 29, 2025 @04:37PM (#46091024)
1K requests/sec doing what?

That's a really low rate in my world.

I write software handling a couple of million of messages per second on a single core on a single machine

Re:Reddit Migrates Comment Back End from Python to Go by Nextgrid on Saturday November 29, 2025 @07:29PM (#46092251)
1k requests/sec over 40 containers, meaning 25 RPS per container. Are you using synchronous threads by any chance (meaning if you're waiting on IO or a network call you are blocked yet your CPU is actually idle)? If so you might benefit from moving to gevent and handle that load with just a handful of containers.
Re:Reddit Migrates Comment Back End from Python to Go by tkfoss on Saturday November 29, 2025 @07:56PM (#46092430)
We get 1K on a single small hetzner VPS, with Flask behind Nginx ¯\_(ツ)_/¯
Re:Reddit Migrates Comment Back End from Python to Go by Spivak on Sunday November 30, 2025 @05:24AM (#46095481)
Yeah, 25 req/sec/process is abysmally slow. You can write slow in any language.

You don't end up seeing these kinds of complaints about Ruby backends and Ruby is the same order of magnitude in terms of speed.