3 ms·
Your question seems a bit too generalized imho. It’s a bit like asking for resources about building a fast vehicle, without specifying what kind of…a fast car i
by devdude1337 4y ago
Your question seems a bit too generalized imho.
It’s a bit like asking for resources about building a fast vehicle, without specifying what kind of…a fast car is certainly much differently built than a fast ship or plane.
I assume you want to make a high-performance web-server. Now performance can mean different things: do you need to serve lots of parallel requests, or do you need to shovel large amounts of data, or you need fast complex calculations? Or all of it?
Every type of "performance" is a separate problem and by solving and integrating them you could achieve a "high-performance" server.
However, performance per se is not a reason to start a project. It is sometimes a necessity (e.g. financial transactions, game servers, page load times, etc.) for the desired quality of a service and its business requirements.
Writing efficient and effective code is the way to reach good speed. In C++ for example it’s often wise to use vector.reserve and plan ahead your memory need. Using static and const where appropriate and enable the compiler to generate best results. There may be similar approaches for Java, too…
Anyway performance is achieved by efficient code and well-designed architecture. That’s why you may not find much resources about such a broad topic.
And oh, don’t write a web server from scratch in C++ - at least wait for C++-20 to be adopted everywhere