资源描述:
《《企业应用架构模式中文版》学习笔记》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、〃EnterpriseapplicationarchitecturemodelChineseedition"studynotes,^enterpriseapplicationarchitecturemodelChineseversion"learningnotesThisbookintroducessomeofthebasicknowledgeofenterpriseapplicationdevelopment,suchaslayeredarchitecture,WEBperformanee,businesslogic,databasemapping,concurrency,conver
2、sation,distributionstrategy,andsoon.Designpatternsareintroducedindetailbyusingscenarios,solutions,andUML(includingsomecommonlyuseddesignpatterns,G0F23andnewdesignpatternsinthisbook)・Learnwhatthesepatternsare,whattheysolve,andhowtheysolvethem・So,ifyouhaveasimilarproblem,youcanfindthecorrespondingp
3、atternfromthebook・Youcansavecosts,shortentheprojectcycletime,avoidrisks,toensurethattheprojectcanbecompletedperfectly.One,threebasiclevels:presentationlayer,domainiayer,datasourcelayerarrangementDutyPresentationlayerProvidesservicestodisplayinformation(forexample,inaWindowsorHTMLpage,processingus
4、errequests(mouseclicks,keystrokes,etc・),HTTPrequests,commandlinecalls,batchAPI)DomainlayerLogic,thetruecoreofasystemDatasourcelayerCommunicatewithdatabases,messagingsystems,transactionmanagers,andothersoftwarepackagesOntheuniversalityprincipleofdependency:therealmlayerandthedatasourcelayerareneve
5、rdependentonthepresentationlayer・Oncetheprocessingnodeisselected,thenitshouldbepossibletokeepallthecodeinasingleprocessasmuchaspossible(possiblyonthesamenodeorpossiblyonmultiplenodesinthecluster)・Don,tputthehierarchyinmultipleprocessesunlessyouhaveto.Becausedoingsonotonlylosesperformance,butalsoa
6、ddscomplexity,asyoumustaddsimilarpatternssuchasremoteappearanceanddatatransferobjects・Complexsupercharger:distributed,explicit,multi-threaded,paradigmdifferences,multiplatformdevelopment,andextremeperformancerequirements(suchas100transactionspersecond)・Two,domainlogicTheorganizationofdomainlogicc
7、anbedividedintothreemainpatterns:transactionscripts,domainmodels,andtablemodules.Thediffereneebetweenthethree:Atransactionscriptisaprocessthatcontrolstheexecutionofaseriesofactionlogic・Domainmodelsarenolongergovernedby