全民快乐8

你当前所在位置:全民快乐8 > IT就业问题 > Java面试题及答案(14/19)——RabbitMQ

Java面试题及答案(14/19)——RabbitMQ

135. rabbitmq 的使用场景有哪些?

 

①. KUAXITONGDEYIBUTONGXIN,SUOYOUXUYAOYIBUJIAOHUDEDIFANGDOUKEYISHIYONGXIAOXIDUILIE。JIUXIANGWOMENCHULEDADIANHUA(TONGBU)YIWAI,HAIXUYAOFADUANXIN,FADIANZIYOUJIAN(YIBU)DETONGXUNFANGSHI。

 

②. DUOGEYINGYONGZHIJIANDEOUHE,YOUYUXIAOXISHIPINGTAIWUGUANHEYUYANWUGUANDE,ERQIEYUYISHANGYEBUZAISHIHANSHUDIAOYONG,YINCIGENGSHIHEZUOWEIDUOGEYINGYONGZHIJIANDESONGOUHEDEJIEKOU。JIYUXIAOXIDUILIEDEOUHE,BUXUYAOFASONGFANGHEJIESHOUFANGTONGSHIZAIXIAN。ZAIQIYEYINGYONGJICHENG(EAI)ZHONG,WENJIANCHUANSHU,GONGXIANGSHUJUKU,XIAOXIDUILIE,YUANCHENGGUOCHENGDIAOYONGDOUKEYIZUOWEIJICHENGDEFANGFA。

 

全民快乐8③. YINGYONGNEIDETONGBUBIANYIBU,BIRUDINGDANCHULI,JIUKEYIYOUQIANDUANYINGYONGJIANGDINGDANXINXIFANGDAODUILIE,HOUDUANYINGYONGCONGDUILIELIYICIHUODEXIAOXICHULI,GAOFENGSHIDEDALIANGDINGDANKEYIJIYAZAIDUILIELIMANMANCHULIDIAO。YOUYUTONGBUTONGCHANGYIWEIZHEZUSAI,ERDALIANGXIANCHENGDEZUSAIHUIJIANGDIJISUANJIDEXINGNENG。

 

④. XIAOXIQUDONGDEJIAGOU(EDA),XITONGFENJIEWEIXIAOXIDUILIE,HEXIAOXIZHIZAOZHEHEXIAOXIXIAOFEIZHE,YIGECHULILIUCHENGKEYIGENJUXUYAOCHAICHENGDUOGEJIEDUAN(Stage),JIEDUANZHIJIANYONGDUILIELIANJIEQILAI,QIANYIGEJIEDUANCHULIDEJIEGUOFANGRUDUILIE,HOUYIGEJIEDUANCONGDUILIEZHONGHUOQUXIAOXIJIXUCHULI。

 

⑤. YINGYONGXUYAOGENGLINGHUODEOUHEFANGSHI,RUFABUDINGYUE,BIRUKEYIZHIDINGLUYOUGUIZE。

 

⑥. KUAJUYUWANG,SHENZHIKUACHENGSHIDETONGXUN(CDNXINGYE),BIRUBEIJINGJIFANGYUGUANGZHOUJIFANGDEYINGYONGCHENGXUDETONGXIN。

 

136. rabbitmq 有哪些重要的角色?

 

全民快乐8RabbitMQ ZHONGZHONGYAODEJIAOSEYOU:SHENGCHANZHE、XIAOFEIZHEHEDAILI:

 

全民快乐8SHENGCHANZHE:XIAOXIDECHUANGJIANZHE,FUZECHUANGJIANHETUISONGSHUJUDAOXIAOXIFUWUQI;

XIAOFEIZHE:XIAOXIDEJIESHOUFANG,YONGYUCHULISHUJUHEQUERENXIAOXI;

全民快乐8DAILI:JIUSHI RabbitMQ BENSHEN,YONGYUBANYAN“KUAIDI”DEJIAOSE,BENSHENBUSHENGCHANXIAOXI,ZHISHIBANYAN“KUAIDI”DEJIAOSE。

 

137. rabbitmq 有哪些重要的组件?

ConnectionFactory(LIANJIEGUANLIQI):YINGYONGCHENGXUYURabbitZHIJIANJIANLILIANJIEDEGUANLIQI,CHENGXUDAIMAZHONGSHIYONG。

Channel(XINDAO):XIAOXITUISONGSHIYONGDETONGDAO。

Exchange(JIAOHUANQI):YONGYUJIESHOU、FENPEIXIAOXI。

全民快乐8Queue(DUILIE):YONGYUCUNCHUSHENGCHANZHEDEXIAOXI。

RoutingKey(LUYOUJIAN):YONGYUBASHENGCHENGZHEDESHUJUFENPEIDAOJIAOHUANQISHANG。

全民快乐8BindingKey(BANGDINGJIAN):YONGYUBAJIAOHUANQIDEXIAOXIBANGDINGDAODUILIESHANG。

 

138. rabbitmq 中 vhost 的作用是什么?

 

全民快乐8vhost KEYILIJIEWEIXUNI broker ,JI mini-RabbitMQ server。QINEIBUJUNHANYOUDULIDE queue、exchange HE binding DENG,DANZUIZUIZHONGYAODESHI,QIYONGYOUDULIDEQUANXIANXITONG,KEYIZUODAO vhost FANWEIDEYONGHUKONGZHI。DANGRAN,CONG RabbitMQ DEQUANJUJIAODU,vhost KEYIZUOWEIBUTONGQUANXIANGELIDESHOUDUAN(YIGEDIANXINGDELIZIJIUSHIBUTONGDEYINGYONGKEYIPAOZAIBUTONGDE vhost ZHONG)。

 

139. rabbitmq 的消息是怎么发送的?

SHOUXIANKEHUDUANBIXULIANJIEDAO RabbitMQ FUWUQICAINENGFABUHEXIAOFEIXIAOXI,KEHUDUANHE rabbit server ZHIJIANHUICHUANGJIANYIGE tcp LIANJIE,YIDAN tcp DAKAIBINGTONGGUOLERENZHENG(RENZHENGJIUSHINIFASONGJI rabbit FUWUQIDEYONGHUMINGHEMIMA),NIDEKEHUDUANHE RabbitMQ JIUCHUANGJIANLEYITIAO amqp XINDAO(channel),XINDAOSHICHUANGJIANZAI“ZHENSHI” tcp SHANGDEXUNILIANJIE,amqp MINGLINGDOUSHITONGGUOXINDAOFASONGCHUQUDE,MEIGEXINDAODOUHUIYOUYIGEWEIYIDE id,BULUNSHIFABUXIAOXI,DINGYUEDUILIEDOUSHITONGGUOZHEIGEXINDAOWANCHENGDE。

 

140. rabbitmq 怎么保证消息的稳定性?

 

TIGONGLESHIWUDEGONGNENG。

TONGGUOJIANG channel SHEZHIWEI confirm(QUEREN)MOSHI。

 

141. rabbitmq 怎么避免消息丢失?

XIAOXICHIJIUHUA

ACKQUERENJIZHI

SHEZHIJIQUNJINGXIANGMOSHI

XIAOXIBUCHANGJIZHI

 

142. 要保证消息持久化成功的条件有哪些?

SHENGMINGDUILIEBIXUSHEZHICHIJIUHUA durable SHEZHIWEI true.

XIAOXITUISONGTOUDIMOSHIBIXUSHEZHICHIJIUHUA,deliveryMode SHEZHIWEI 2(CHIJIU)。

XIAOXIYIJINGDAODACHIJIUHUAJIAOHUANQI。

全民快乐8XIAOXIYIJINGDAODACHIJIUHUADUILIE。

 

YISHANGSIGETIAOJIANDOUMANZUCAINENGBAOZHENGXIAOXICHIJIUHUACHENGGONG。

 

143. rabbitmq 持久化有什么缺点?

全民快乐8CHIJIUHUADEQUEDIJIUSHIJIANGDILEFUWUQIDETUNTULIANG,YINWEISHIYONGDESHICIPANERFEINEICUNCUNCHU,CONGERJIANGDILETUNTULIANG。KEJINLIANGSHIYONG ssd YINGPANLAIHUANJIETUNTULIANGDEWENTI。

 

144. rabbitmq 有几种广播类型?


SANZHONGGUANGBOMOSHI:

 

全民快乐8fanout: SUOYOUbindDAOCIexchangeDEqueueDOUKEYIJIESHOUXIAOXI(CHUNGUANGBO,BANGDINGDAORabbitMQDEJIESHOUZHEDOUNENGSHOUDAOXIAOXI);

全民快乐8direct: TONGGUOroutingKeyHEexchangeJUEDINGDENEIGEWEIYIDEqueueKEYIJIESHOUXIAOXI;

topic:SUOYOUFUHEroutingKey(CISHIKEYISHIYIGEBIAODASHI)DEroutingKeySUObindDEqueueKEYIJIESHOUXIAOXI;

 

145. rabbitmq 怎么实现延迟消息队列?

 

TONGGUOXIAOXIGUOQIHOUJINRUSIXINJIAOHUANQI,ZAIYOUJIAOHUANQIZHUANFADAOYANCHIXIAOFEIDUILIE,SHIXIANYANCHIGONGNENG;

全民快乐8SHIYONG RabbitMQ-delayed-message-exchange CHAJIANSHIXIANYANCHIGONGNENG。

 

146. rabbitmq 集群有什么用?

 

JIQUNZHUYAOYOUYIXIALIANGGEYONGTU:

 

全民快乐8GAOKEYONG:MOUGEFUWUQICHUXIANWENTI,ZHENGGE RabbitMQ HAIKEYIJIXUSHIYONG;

GAORONGLIANG:JIQUNKEYICHENGZAIGENGDUODEXIAOXILIANG。

 

147. rabbitmq 节点的类型有哪些?

 

CIPANJIEDIAN:XIAOXIHUICUNCHUDAOCIPAN。

NEICUNJIEDIAN:XIAOXIDOUCUNCHUZAINEICUNZHONG,ZHONGQIFUWUQIXIAOXIDIUSHI,XINGNENGGAOYUCIPANLEIXING。

 

148. rabbitmq 集群搭建需要注意哪些问题?

 

全民快乐8GEJIEDIANZHIJIANSHIYONG“–link”LIANJIE,CISHUXINGBUNENGHULVE。

GEJIEDIANSHIYONGDE erlang cookie ZHIBIXUXIANGTONG,CIZHIXIANGDANGYU“MIYAO”DEGONGNENG,YONGYUGEJIEDIANDERENZHENG。

全民快乐8ZHENGGEJIQUNZHONGBIXUBAOHANYIGECIPANJIEDIAN。

 

149. rabbitmq 每个节点是其他节点的完整拷贝吗?为什么?

 

全民快乐8BUSHI,YUANYINYOUYIXIALIANGGE:

 

CUNCHUKONGJIANDEKAOLV:RUGUOMEIGEJIEDIANDOUYONGYOUSUOYOUDUILIEDEWANQUANKAOBEI,ZHEIYANGXINZENGJIEDIANBUDANMEIYOUXINZENGCUNCHUKONGJIAN,FANERZENGJIALEGENGDUODERONGYUSHUJU;

全民快乐8XINGNENGDEKAOLV:RUGUOMEITIAOXIAOXIDOUXUYAOWANZHENGKAOBEIDAOMEIYIGEJIQUNJIEDIAN,NEIXINZENGJIEDIANBINGMEIYOUTISHENGCHULIXIAOXIDENENGLI,ZUIDUOSHIBAOCHIHEDANJIEDIANXIANGTONGDEXINGNENGSHENZHISHIGENGZAO。

 

150. rabbitmq 集群中唯一一个磁盘节点崩溃了会发生什么情况?

 

全民快乐8RUGUOWEIYICIPANDECIPANJIEDIANBENGKUILE,BUNENGJINXINGYIXIACAOZUO:

 

BUNENGCHUANGJIANDUILIE

BUNENGCHUANGJIANJIAOHUANQI

BUNENGCHUANGJIANBANGDING

BUNENGTIANJIAYONGHU

BUNENGGENGGAIQUANXIAN

BUNENGTIANJIAHESHANCHUJIQUNJIEDIAN

 

WEIYICIPANJIEDIANBENGKUILE,JIQUNSHIKEYIBAOCHIYUNXINGDE,DANNIBUNENGGENGGAIRENHEDONGXI。

 

151. rabbitmq 对集群节点停止顺序有要求吗?

 

RabbitMQ DUIJIQUNDETINGZHIDESHUNXUSHIYOUYAOQIUDE,YINGGAIXIANGUANBINEICUNJIEDIAN,ZUIHOUZAIGUANBICIPANJIEDIAN。RUGUOSHUNXUQIAHAOXIANGFANDEHUA,KENENGHUIZAOCHENGXIAOXIDEDIUSHI。

课程预约

全民快乐8

全民快乐8

全民快乐8