下载
加入VIP
  • 专属下载券
  • 上传内容扩展
  • 资料优先审核
  • 免费资料无限下载

上传资料

关闭

关闭

关闭

封号提示

内容

首页 apache-mina-the-high-performance-protocol-constr…

apache-mina-the-high-performance-protocol-construction-toolkit.pdf

apache-mina-the-high-performanc…

fleetlin
2013-12-25 0人阅读 举报 0 0 0 暂无简介

简介:本文档为《apache-mina-the-high-performance-protocol-construction-toolkitpdf》,可适用于IT/计算机领域

ThehighperformanceprotocolconstructiontoolkitApachePeterRoyal<proyalapacheorg>OriginallypresentedatApacheConUSinAtlanta,GA(ifyoucan’treadthis,movecloser!)Wednesday,November,Hi,I’mPeterhttp:fotaporg~osiWednesday,November,MINAhackersinceFallWednesday,November,RadarNetworkshttp:radarnetworkscomWednesday,November,SanFranciscoWednesday,November,ApacheMemberhttp:apacheorgWednesday,November,WhatisMINAWednesday,November,MINAWednesday,November,MultipurposeInfrastructureNetworkedApplicationshttp:minaapacheorgWednesday,November,BuiltonJavaNIOWednesday,November,NonBlockingWednesday,November,AsynchronousWednesday,November,EventDriven(SEDA!)Wednesday,November,MultipleTransports(frameworkisreallyagnostic)Wednesday,November,TCPWednesday,November,UDP(beingrewrittenfor)Wednesday,November,InVM(greatfortesting)Wednesday,November,ApachePortableRuntime(APR)(underdevelopment,alternateTCPUDPimplementation)Wednesday,November,(andmore)Wednesday,November,SmartlyDesignedWednesday,November,FollowsInversionofControlPattern(playsnicelywithPicoContainer,Spring,etc)Wednesday,November,SeparationofConcernsWednesday,November,ApplicationLogicWireProtocolRatherthanthisWednesday,November,ConcernsareSeparatedWireProtocolApplicationLogicWednesday,November,StableandProductionReady•vreleasedFall•vreleasedApril•SameAPIasvbutusesJavaConcurrencyprimitives•vthisyear•APIsimplificationbasedonlessonslearned•Performancebooststoo!Wednesday,November,ManyProtocolsUsers(hereareafew)Wednesday,November,ApacheDirectoryhttp:directoryapacheorgLDAPv,NTP,DNS,DHCPandKerberosWednesday,November,SubEthaSTMPhttp:subethasmtptigrisorgSMTPWednesday,November,Apache(incubating)Qpidhttp:cwikiapacheorgqpidAdvancedMessagingQueuingProtocol(AMQP)(fromWallStreet!)Wednesday,November,Openfirehttp:wwwjivesoftwarecomproductsopenfireXMPPWednesday,November,redhttp:wwwosflashorgredRTMP(talktoFlashplayer)Wednesday,November,andmore!(maybeyou,nexttime!)Wednesday,November,KeyConceptsWednesday,November,ByteBuffer•CoreNIOconstruct•MINAversionthatwrapsandprovidesadditionalconveniencemethods•autoexpanding,stringencoding•MINAgivescontrol•allocatefromtheHeaporStack•optionalPooling•(inv,willbenonpooledandheaponly,asitprovidesthebestperformance)Wednesday,November,Future•Representsafunctioncallthatcompletesasynchronously•Providesblockingfunctionstoretrievetheresult•MINAallowscallbackstobeinvokeduponcompletion,soinvokingthreadcan“fireandforget”•(unliketheJavaFuture)Wednesday,November,IoServiceIoHandlerIoFilterIoFilterIoFilterIoProcessorReadsWritesWednesday,November,IoHandlerIoProcessorIoFilterIoFilterIoFilterIoServiceReadsWritesTwoVersionsWednesday,November,IoHandlerIoProcessorIoFilterIoFilterIoFilterIoServiceReadsWritesIoAcceptor“actasserver”singlethreadfornewconnectionsWednesday,November,IoHandlerIoProcessorIoFilterIoFilterIoFilterIoServiceReadsWritesIoConnector“actasclient”Wednesday,November,IoHandlerIoProcessorIoFilterIoFilterIoFilterIoServiceReadsWritesConnectioninstanceisanIoSessionWednesday,November,IoHandlerIoProcessorIoFilterIoFilterIoFilterIoServiceReadsWritesHandlesreadsandwritesWednesday,November,IoHandlerIoProcessorIoFilterIoFilterIoFilterIoServiceReadsWritesInstancecountscaleswithCPULoadWednesday,November,IoHandlerIoProcessorIoFilterIoFilterIoFilterIoServiceReadsWritesSessionfixedtoanInstance(underreviewforv)Wednesday,November,IoHandlerIoProcessorIoFilterIoFilterIoFilterIoServiceReadsWritesChainofIoFilter’sWednesday,November,IoHandlerIoProcessorIoFilterIoFilterIoFilterIoServiceReadsWritesPerConnectionWednesday,November,IoHandlerIoProcessorIoFilterIoFilterIoFilterIoServiceReadsWritesReusableWednesday,November,IoHandlerIoProcessorIoFilterIoFilterIoFilterIoServiceReadsWritesHotDeployableWednesday,November,IoHandlerIoProcessorIoFilterIoFilterIoFilterIoServiceReadsWritesFilteralleventsReadWriteIdleetcWednesday,November,IoHandlerIoProcessorIoFilterIoFilterIoFilterIoServiceReadsWritesApplicationLogicLivesHereWednesday,November,LargeLibraryofIoFilter’sWednesday,November,ProtocolConversion•FrameworktopluginyourowncodecstohandleconversiontofromaByteBuffer•Existingcodecs•Textbased•JavaSerializationWednesday,November,BlacklistWednesday,November,Logging(greatfordebugging!)Wednesday,November,SSLTLSWednesday,November,CompressionWednesday,November,ReadThrottling(writethrottlingisin)Wednesday,November,ThreadModels(anecessaryevil)Wednesday,November,“singlethreaded”Wednesday,November,OneIoProcessorThreadWednesday,November,ScalabilitysucksWednesday,November,AddmoreIoProcessorThreads(atleastoneperCPUcore)Wednesday,November,LowestlatencyScalesnicely(connectionlatencytobeaddressedinv)Wednesday,November,“multithreaded”Wednesday,November,useExecutorFilterWednesday,November,IoProcessorthreadsonlydoreadswrites(theintent)Wednesday,November,Filtersexecuteonadifferentthread(filterlocationiskey!)Wednesday,November,Workforasessionisserialized(queuedpersession)Wednesday,November,WorkisdelegatedtoanExecutor(generallyajavautilconcurrentThreadPoolExecutor)Wednesday,November,Sizethreadpoolto“active”sessioncount(toomuchinqueue==OOM!UsetheReadThrottlefilter)Wednesday,November,“recommendedapplicationpattern”•useExecutorFilterasfirstinchain•unlessyouneedreallylowlatency•useProtocolCodecFilter•convertthewireprotocolintoaJavarepresentation•putapplicationlogicintoanIoHandler•storestateintheIoSession•minimumofJava•javautilconcurrentrocks!Wednesday,November,ExampleTime!Wednesday,November,EverybodylovesaHaikuWednesday,November,ThisisourHaikuvalidatorWednesday,November,SimpleProtocol•Connect•Sendlinesoftext•ReceiveHAIKU!orNOTAHAIKU:•(plusalittlereasonwhynot)Wednesday,November,ProtocolCodecFilterTextLineCodecFactoryBytestoJavaString’sForfree!Wednesday,November,ToHaikuIoFilterThreeString’stoaHaikuWednesday,November,Filterisverytestable(mockobjectsrock!)Wednesday,November,IoHandlerisverysimpleValidateHaiku,sendresultWednesday,November,AlsoverytestableWednesday,November,VeryeasytohookitallupWednesday,November,Questions(I’mhereallweek!)Wednesday,November,ThankYou!Wednesday,November,http:minaapacheorgWednesday,November,

用户评价(0)

关闭

新课改视野下建构高中语文教学实验成果报告(32KB)

抱歉,积分不足下载失败,请稍后再试!

提示

试读已结束,如需要继续阅读或者下载,敬请购买!

评分:

/16

VIP

在线
客服

免费
邮箱

爱问共享资料服务号

扫描关注领取更多福利