Re:Scaling to ~15K requests per second with Java – Part 1
by bicijay on Friday July 14, 2023 @10:25AM
(#36724463)
Add a load balancer + 24 machines.
[ Parent
| on HN ]
Re:Scaling to ~15K requests per second with Java – Part 1
by hn8305823 on Friday July 14, 2023 @11:13AM
(#36725136)
Or write it in C on Linux/BSD and use a one 10 year old server
Re:Scaling to ~15K requests per second with Java – Part 1
by jacquesm on Friday July 14, 2023 @11:25AM
(#36725344)
I wouldn't be so quick to say that. I've pretty spent the better part of my life writing C code, lots of it networked. And while you can get absolutely awesome performance out of it on modest hardware the JVM is no slouch at running networking stuff, I wouldn't be surprised if it is roughly on par with optimized C for that kind of application. Usually it's the kernel side that will be your bottleneck and it won't make much of a difference what the application is written in once you are that close to the theoretical max.
Re:Scaling to ~15K requests per second with Java – Part 1
by dabbz on Friday July 14, 2023 @12:05PM
(#36725920)
Writing it in C isn't some magic bullet. Java you're spending your time optimizing the tail end of efforts, but C you're spending your time optimizing the bulk of the effort that Java gives for free. (not that I'm defending Java, but C being low level doesn't make it instantly easy to do faster stuff with).