设计模式、数据结构及架构.pdf

上传人:qwe****56 文档编号:69626300 上传时间:2023-01-07 格式:PDF 页数:6 大小:161.24KB
返回 下载 相关 举报
设计模式、数据结构及架构.pdf_第1页
第1页 / 共6页
设计模式、数据结构及架构.pdf_第2页
第2页 / 共6页
点击查看更多>>
资源描述

《设计模式、数据结构及架构.pdf》由会员分享,可在线阅读,更多相关《设计模式、数据结构及架构.pdf(6页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、架构、设计模式、数据结构架构、设计模式、数据结构李建奇V1.02011110V1.12011310 抽象是最重要的架构技能一一.首先要理解业务 首先要理解业务?先作,数据流图,状态图?数据驱动设计?再理解 业务的特点,请求的分布二二.用有限的资源战胜价值 用有限的资源战胜价值(需求需求),关键是平衡和抉择关键是平衡和抉择?架构要抽象掉细节。?首先设定资源限制,其次才设计?理解 feature 的重要程度。三三.不要让细节,麻痹最重要的架构决定 不要让细节,麻痹最重要的架构决定和“道”一样,架构图,好像谁都可以做。架构师,不是设计师,更不是程序员。四四.架构师需实现核心原形系统 架构师需实现核心

2、原形系统五五.要简化问题,但是不要太简单 要简化问题,但是不要太简单,balanceEssentialcomplexityrepresentsthedifficultyinherentinanyproblem.六六.技能 技能?Importantskill:abilitytoestimateperformanceofasystemdesign withoutactuallyhavingtobuildit!?理解系统每个模块的实现,Understandeverycomponentsimplementation.?知道的东西要多,这样,架构的时候,就有选择七七.Philosophyanddisci

3、pline?Beawareofcontext?Extrememaintenance?Bepragmatic?PreferDescriptiontocoding?Extremeabstract:Programtoaninterface(abstraction),notanimplementation?Extremeseparationofconcerns?Extremereadability?Testability?Nosideeffect?Donotrepeatyourself八八.DesignPrincipleDIP,dependencyinversionofcontrolOCP,openc

4、lose LSP,liskovsubstitute ISP,interfacesegregation SRP,singleresponsibility LKP,Leaseknowledgeprinciple九九.DataStructure&algorithms 算法是软件的核心。1logNNnLongN Dividedandconqueror RbtreeB+tree 十十.ArchitecturepatternStructurepattern Hierarchal,上层的东西,要抽象掉下层的差异。PipesandfilterMicrokernelBroker BlackBoardInterp

5、reter Connectionpattern:DirectRPC AsynchronousRPC Messagequeueserver Publishsubscribe MessageBroker(informationbus)十一十一.Architecturetactic HowtoconquerqualityattributeScalabilitytactic a)Stretch key dimensions(10X 20X)to see what breaks b)Bottleneck must be IO(disk and net)AvailabilitytacticModifiab

6、ilitytacticPerformancetactica)Speedupdataconversionb)Occupyrecourseasshortaspossiblec)Batchoperationd)MinimizeremotecallsandotherI/OTestabilitytacticUsabilitytactic1.Restartable 2.Allow rollbacks to previous versionsAllow rollbacks to previous versions.Necessary in case of an error in an update.3.Mo

7、nitor and instrument everything,and give enough fault information for diagnosisMonitor and instrument everything,and give enough fault information for diagnosis.Save more information than e.g.just A query has failed.Save query,time,error message and if possible the state of the application.4.Make ev

8、erything configurableMake everything configurable.Make diagnosis options configurable,rather than adding them when a system is failing.Adding monitoring to a failing system is asking for problems.十二十二.DesignpatternConstructionBehaviorStructure?antipattern、badsmellLongmethodDiversechangeRepeatedcodeT

9、alktostrangerPrematureOptimization十三十三.languagesErlangAssembleCC+JavaPythonScalaPhp Bewareofdifferentprogramparadigms.十四十四.Architectsfuturefocus软件设计思想的发展逻辑,大致是提高抽象程度,separation of concern 程度。fn(design)=fn1(abstraction)+fn2(separation of concern).由于大规模数据处理时代的来临,下一代设计范式的重点:1.将是如何提高 distributed(-concurrent)programming 的抽象程度 和 separation of concern 程度。2.dsl,按照以上的公式,也确实是一个好的方向。十五十五.Reference你的灯亮着吗jeffdean 冒号课堂郑晖http:/en.wikipedia.org/wiki/Programming_paradigm

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 应用文书 > 财经金融

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁