Nginxusesbufferstostorerequestandresponsedataatvariousstages.OptimalbufferallocationcanhelpyousparememoryconsumptionandreduceCPUusage.Thefollowingtablelistsdirectivesthatcontrolbufferallocationandthestagestheyareappliedto:Asyoucansee,mostofthedirectivestaketwoarguments:anumberandasize.Thenumberargumentspecifiesthemaximumnumberofbuffersthatcanbeallocatedperrequest.Thesizeargumentspecifiest...
AnSSLsessionisstartedbyahandshakeprocedurethatinvolvesmultipleroundtrips(seethefollowingfigure).Theclientandserverhavetoexchangefourmessageswithalatencyofaround50millisecondseach.Intotal,wehaveatleast200millisecondsofoverheadwhileestablishingasecureconnection.Inadditiontothat,boththeclientandtheserverneedtoperformpublic-keycryptographicoperationsinordertoshareacommonsecret.Theseoperationsa...