I've developed an interest in performance, and I'd like to try to build a high-performance server from scratch in C++ or Java. I'm looking for good resources about how to do this. I'd considered looking at codebases for existing servers, but I think I'd end up missing a lot of the important details. Does anyone have any suggestions about good resources for this?
Thank you.
Writing a server in C++ or (especially) Java is an exercise in sacrificing some elements of pure performance to deliver an artifact your team has the skills to maintain or build on. There are specific- quite different- performance considerations in those languages that are really about the quite different runtimes of those languages. The mechanical things one does in Java to avoid garbage are different than what one does in C++ to solve for codegen.