欢迎来到天天文库
浏览记录
ID:37946374
大小:4.66 MB
页数:54页
时间:2019-06-03
《QConShanghai2013-顾庆-打造高效的单机开发环境》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、打造高效的单机开发环境qing.gu@dianping.comAboutmeSeniordeveloper@dianping.comArchteamMessageQueueCustomizedTomcatSoftwareLoadBalancinghttp://osrc.dfm.io/marsqingEasySetupCoupling架构师产品经理Boss程序员BeforeandAfterSOAService可用性DB稳定性...多版本ViaMockDBMockServiceMockLocalizeAllServic
2、eDB...AStepbyStepProcess②HTTPRoutingProject1toDev...ProjectNtoDev①ServicesLoginServiceUserService...SMSService③DBMQCache...①and③havesomethingincommonShowmeStep1[marsqing:~]$mvnphoenix:projectChooseProjectstoDevStep2WorkHardImportintoIDEStep3LaunchStep4Done!The
3、BenefitsFocusLessFrustrationkeep(‘calm’,function(){keep(‘coding’);});RapidenvironmentsetupMorebusiness-focusedideasMorepullrequestMorecommunitycontributionQuickinvolvementKeeppassionateHow?SystemisParts+Interconnection+PurposesourcecodeMysql,MQ...socketfunction
4、asawholePartsFetchingPartsAllinGitsourcecode,binary,dataeasyaccessversioncontrolincrementalupdateWhattoFetchProjectsChosenDependentSOAServiceProjectsBranchingStrategyDistributeviaMavenPluginReusemavenrepositoryZerosetupEasyupdateInterconnectionsAlterbehaviorwi
5、thouteditinginthatplaceSeam+EnablingPointSeamAseamisaplacewhereyoucanalterbehaviorinyourprogramwithouteditinginthatplace.修改点EnablingPointEveryseamhasanenablingpoint,aplacewhereyoucanmakethedecisiontouseonebehaviororanother.非侵入修改的机制PreprocessingSeamLinkSeamObje
6、ctSeamWhereistheSeam?moreWhereusesservice,datasourceInsideservice,datasourceframeworknumberofseamslessWhereistheEnablingPoint?PreprocessingSeamLinkSeamclasspathJavaagentObjectSeamtransformclassJavaagent}BytemanDSLBytemanEvent--Methodentry,exit,invodeanothermet
7、hod...Condition--WhethertotriggeractionAction--Hackthereturnvalue,fields,arguments,localvariables...TheSeam--InsideserviceframeworkServiceRoutingTableTheEnablingPoint--Javaagent(Byteman)HackserviceroutingtableServiceRoutingTableservicenameserviceprovider......l
8、oginService192.168.1.1:2000......RerouteandinjectRe-RoutingServiceParts1Fetchservicesource2.1ScananddeterminerouteInterconnection2.2InjecttoserviceframeworkviabytemanSeamEnablingPo
此文档下载收益归作者所有