Node.js Design Patterns
Inthisbook,wewillshowyouhowtoimplementaseriesofbestpracticesanddesignpatternstohelpyoucreateefficientandrobustNode.jsapplicationswithease.WekickoffbyexploringthebasicsofNode.js,analyzingitsasynchronouseventdrivenarchitectureanditsfundamentaldesignpatterns.Wethenshowyouhowtobuildasynchronouscontrolflowpatternswithcallbacks,promisesandasync/await.Next,wediveintoNode.jsstreams,unveilingtheirpowerandshowingyouhowtousethemattheirfullcapacity.Followingstreamsisananalysisofdifferentcreational,structural,andbehavioraldesignpatternsthattakefulladvantageofJavaScriptandNode.js.Lastly,thebookdivesintomoreadvancedconceptssuchasUniversalJavaScript,scalabilityandmessagingpatternstohelpyoubuildenterprise-gradedistributedapplications.Throughoutthebook,you’llseeNode.jsinactionwiththehelpofseveralreal-lifeexamplesleveragingtechnologiessuchasLevelDB,Redis,RabbitMQ,ZeroMQ,andmanyothers.Theywillbeusedtodemonstrateapatternortechnique,buttheywillalsogiveyouagreatintroductiontotheNode.jsecosystemanditssetofsolutions.
·16.7萬字