版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
、MQ、主要關(guān)注前三個(gè)(標(biāo)紅高高中中中中低低中高高中中中低高低低多多中多中中少少中由于ErlangLinux高43方式CJMSPerl、.net等C+(不成python、java、php、.net等庫負(fù)載好有console實(shí)現(xiàn)無好無優(yōu)點(diǎn)戶端;缺點(diǎn)且對(duì)5.xActivemq不 erlang持amqpamqp的客優(yōu)點(diǎn)用(JMS的50臺(tái)左右,broker中;缺點(diǎn)mq中 等接的API下層MQ有多個(gè)mqnotify面mq這支持的ProtocolsThefollowingtableliststhesupportedprotocolsofeach0-8,0------------------STOMP-------InterfacesC------------Java--Java------------------------mq ark[文獻(xiàn)MQrabbitmqkafka傳統(tǒng)MQScenarioA:Enqueuing20,000messagesof1024byteseach,thendequeuingthemScenarioB:Enqueuinganddequeuingsimultaneously20,000messagesof1024byteseach.ScenarioC:Enqueuinganddequeuingsimultaneously200,000messagesof32bytesScenarioD:Enqueuinganddequeuingsimultaneously200messagesof32768bytesScenarioScenarioScenarioScenarioKafkavskafkarabbitmq的對(duì)比中,kafka工作是保證消息consumer是一直處于alive狀態(tài)去消費(fèi)消息的;broker重,需要記錄很多狀充分考慮消息堆積因consumer不alive狀態(tài);考慮各個(gè)角色的分布式;為追求吞吐量設(shè)broker設(shè)計(jì)較輕,不保存consumer的消提供了豐富的的exchange、bindingqueuing等modelqueue、topic等routing都topicroutingtopicrouting對(duì)應(yīng)用透明的集群式但是集群對(duì)producer并不是完全透明,producer需要確認(rèn)消同這一點(diǎn)實(shí)現(xiàn)了消息的順序遞交特性(partition內(nèi)的消息是順序的mirrorqueue來masterslave通過replica來支持 master/slave的可以自動(dòng)切換(當(dāng)master支持,但需要人工切換masterslave消息量消息量消息量。mqmetaq,metaqlinkedinkafka(scala)java版本,并對(duì)其增加了事務(wù)的支持mqmetaq3.0kafka,其擅以替代傳統(tǒng)大部分MQ。。notify,meta2.x以前的所有隊(duì)列由于mq還比較新且沒有給出相應(yīng)的benark而mq社區(qū)主要活躍者均國(guó)內(nèi)人員,因此不便于直接對(duì)比mq和其他隊(duì)列。在這里用kafka和其他隊(duì)列進(jìn)行對(duì)比,mq的性能比kafka還要好一些。kafkavsrabbitmqinKafkaisageneralpurposemessagebroker,likeRabbItMQ,withsimilardistributeddeploymentgoals,butwithverydifferentassumptionsonmessagemodelsemantics.Iwouldbeskepticalofthe"AMQPismoremature"argumentandlookatthefactsofhoweithersolutionsolvesyourproblem.UseKafkaifyouhaveafirehoseofevents(100k+/sec)youneeddeliveredinpartitionedorder'atleastonce'withamixofonlineandbatchconsumers,youwanttobeabletore-readmessages,youcandealwithcurrentlimitationsaroundnode-levelHA(orcanusetrunkcode),and/oryoudon'tmindsupportingincubator-levelsoftwareyourselfviaforums/IRC.UseRabbitifyouhavemessages(20k+/sec)thatneedtoberoutedincomplexwaystoconsumers,youwantper-messagedeliveryguarantees,youdon'tcareaboutordereddelivery,youneedHAatthecluster-nodelevelnow,and/oryouneed24x7paidsupportinadditiontoNeitheroffersgreat"filter/query"capabilities-ifyouneedthat,considerusingStormontopofoneofthesesolutionstoaddcomputation,filtering,querying,onyourstreams.OrusesomethinglikeCassandraasyourqueryablecache.Kafkaisalsodefiniynot"mature"eventhoughitis"productionready".Details(caveat-myopinion,I'venotusedeitheringreatanger,andIhavemoreexposuretoFirstly,onRabbitMQvs.Kafka.Theyarebothexcellentsolutions,RabbitMQbeingmoremature,butbothhaveverydifferentdesignphilosophies.Fundamentally,I'dsayRabbitMQisbroker-centric,focusedarounddeliveryguaranteesbetweenproducersandconsumers,withtransientpreferredoverdurablemessages. WhereasKafkaisproducer-centric,basedaroundpartitioningafirehoseofeventdataintodurablemessagebrokerswithcursors,supportingbatchconsumersthatmaybeoffline,oronlineconsumersthatwantmessagesatlowlatency.RabbitMQusesthebrokeritselftomaintainstateofwhat'sconsumed(viaacknowledgements)-itusesErlang'sMnesiatomaintaindeliverystatearoundthebrokercluster.Kafkadoesn'thavemessageacknowledgements,itassumestheconsumertracksofwhat'sbeenconsumedsofar.BothKafkabrokers&consumersuseZookeepertoreliablymaintaintheirstateacrossacluster.RabbitMQpresumesthatconsumersaremostlyonline,andanymessages"inwait"(persistentornot)areheldopaquely(i.e.nocursor).RabbitMQpre-2.0(2010)wouldfalloverifyourconsumersweretooslow,butnowit'srobustforonlineandbatchconsumers-butclearlylargeamountsofpersistentmessagessittinginthebrokerwasnotthemaindesigncaseforAMQPingeneral.Kafkawasbasedfromthebeginningaroundbothonlineandbatchconsumers,andalsohasproducermessagebatching-it'sdesignedforholdinganddistributinglargevolumesofRabbitMQprovidesrichroutingcapabilitieswithAMQP0.9.1'sexchange,bindingandqueuingmodel.Kafkahasaverysimpleroutingapproach-inAMQPparlanceitusestopicexchangesBothsolutionsrunasdistributedclusters,butRabbitMQ'sphilosophyistomaketheclustertransparent,asifitwereavirtualbroker.Kafkamakesitexplicit,byforcingtheproducertoknowitispartitioningatopic'smessagesacrossseveralnodes,thishasthebenefitofpreservingordereddeliverywithinapartition,whichisricherthanwhatRabbitMQexposes,whichisalmostalwaysunordereddelivery(theAMQP0.9.1modelsays"oneproducerchannel,oneexchange,onequeue,oneconsumerchannel"isrequiredforin-orderdelivery).Putanotherway,Kafkapresumesthatproducersgenerateamassivestreamofeventsontheirowntimetable-there'snoroomforthrottlingproducersbecauseconsumersareslow,sincethedataistoomassive.ThewholejobofKafkaistoprovidethe"shockabsorber"betweenthefloodofeventsandthosewhowanttoconsumethemintheirownway--someonline,othersoffline-onlybatchconsumingonanhourlyorevendailybasis.Kafkacandeliver"atleastonce"semanticsperpartition(sincemaintainsdeliveryorder),justlikeRabbitMQ,butitdoesitinaverydifferentway.Performance-wise,ifyourequireordereddurablemessagedelivery,currentlyitlookslikethere'snocomparison:KafkacurrentlyblowsawayRabbitMQintermsofperformanceonsyntheticbenarks.Thispaperindicates500,000messagespublishedpersecondand22,000messagesconsumedpersecondona2-nodeclusterwith6-diskRAID/en...OfcoursethiswaswrittenbytheLinkedInguyswithoutnecessarilyexpertRabbitMQinput,soFinally,a KafkaisanearlyApacheincubator Itdoesn'tnecessarilyhavethehard-learnedaspectsinNow,awordonAMQP.Frankly,itseemsthestandardisamess.Officiallythereisa1.0proposedspecificationthatisgoingthroughtheOASISstandardsprocess.InpracticeitisaAsetofgenerallyavailable,widely-adopted,production-qualityAMQP1.0implementationsacrossthemajorreleases(QpidfromRedhat,RabbitMQ,etc.)won'texistuntil2013,ifever.Asanexternalobserverwithnoinsideknowledge,hereiswhatitlookslike:theworkinggroupspent5yearsonaspec,from2003to2008,culminatinginawidelyadoptedrelease(0.9.1).Thenasubsetofmorepowerfulworkinggroupmembersrewrotethespecbylate2011,compleyshiftingthefocusofthespecfromamessagingmodeltoatransportprotocol(sortoflikeTCP++),anddeclaredit1.0.So,wehavethestrangecasewherethe"mature"AMQPisthenon-standard0.9.1specificationandthe"immature"AMQPistheactual1.0standard.Thisisn'ttosuggest1.0isn'tgoodtechnology,itlikelyis,butthatit'samuchlower-levelspecthanAMQPintendedtobeformostofitspublishedlife,andisnotwidelysupportedyetbeyondprototypesando
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 甘肅xx城鎮(zhèn)老舊小區(qū)改造項(xiàng)目可行性研究報(bào)告
- 技能認(rèn)證考試復(fù)習(xí)試題有答案
- 生理第三練習(xí)試卷附答案
- 常壓儲(chǔ)罐高級(jí)理論練習(xí)試題及答案
- 北京xx產(chǎn)業(yè)園基礎(chǔ)設(shè)施項(xiàng)目可行性研究報(bào)告
- 2024年甲乙雙方關(guān)于廣告投放的分成合同
- 2024年消防安全設(shè)施施工協(xié)議范本一
- 2024年海洋工程保險(xiǎn)項(xiàng)目協(xié)議
- 2025年全國(guó)名校??甲魑模骸坝弥参飦硇蜗蟮卣故久利惖闹袊?guó)人”
- 2024年度股權(quán)投資合伙合同模板2篇帶眉腳
- 《軟弱地基處理》課件
- 電腦系統(tǒng)升級(jí)方案
- 外派董事培訓(xùn)課件
- 個(gè)性化營(yíng)養(yǎng)餐定制平臺(tái)商業(yè)計(jì)劃書
- 期末復(fù)習(xí)單詞正確形式填空專項(xiàng)練習(xí)(試題)譯林版(三起)英語四年級(jí)上冊(cè)
- (完整)小學(xué)四年級(jí)多位數(shù)乘除法400題
- 火電廠運(yùn)行管理
- 搞笑朗誦我愛上班臺(tái)詞
- 高考語文復(fù)習(xí)小說閱讀之人物形象課件54張
- 20以內(nèi)加減法口算題100道計(jì)時(shí)精編版(共計(jì)3500道)可直接打印
- 錯(cuò)題資源與利用方式
評(píng)論
0/150
提交評(píng)論