Node.js High Performance
Node.jsisatoolwritteninC,whichallowsyoutouseJavaScriptontheserver-side.HighperformanceonaplatformlikeNode.jsisknowinghowtotakeadvantageofeveryaspectofyourhardware,helpingmemorymanagementactatitsbest,andcorrectlydecidinghowtoarchitectacomplexapplication.Donotpanicifyourapplicationsstartconsumingalotofmemory;insteadspottheleakandsolveitfastwithNode.jsbymonitoringandstoppingitbeforeitbecomesanissue.Thisbookwillprovideyouwiththeskillsyouneedtoanalyzetheperformanceofyourapplicationandmonitortheaspectsthatcanandshouldbe.StartingwithperformanceanalysisconceptsandtheirimportanceinhelpingNode.jsdeveloperseliminateperformancebottlenecks,thisbookwilltakeyouthroughdevelopmentpatternstoavoidperformancepenalties.Youwilllearntheimportanceofgarbagecollectionanditsbehaviour,anddiscoverhowtoprofileyourprocessor,allowingbetterperformanceandscalability.Youwillthenlearnaboutthedifferenttypesofdatastoragemethods.Movingon,youwillgettogripswithtestingandbenchmarkingapplicationstoavoidunknownapplicationtestzones.Lastly,youwillexplorethelimitsthatexternalcomponentscanimposeinyourapplicationintheformofbottlenecks.Byfollowingtheexamplesineachchapter,youwilldiscovertipstogettingbetterperformingapplicationsbyavoidinganti-patternsandstretchingthelimitsofyourenvironmentasmuchaspossible.
·3.3萬字