Qhov kev sib pauv twg muaj qhov tseem ceeb raws li cov npe ntawm cov lus?
Qhov kev sib pauv twg muaj qhov tseem ceeb raws li cov npe ntawm cov lus?

Video: Qhov kev sib pauv twg muaj qhov tseem ceeb raws li cov npe ntawm cov lus?

Video: Qhov kev sib pauv twg muaj qhov tseem ceeb raws li cov npe ntawm cov lus?
Video: qhov txhab kev hlub 2024, Kaum ib hlis
Anonim

Ntsiab lus Txauv

Hauv hom no pauv , lus raug xa mus rau queues raws li qhov tus yuam sij routing . Qhov no txhais tau hais tias cov lus xa mus rau ib lub ncauj lus pauv yuav tsum muaj ib qho tshwj xeeb tus yuam sij routing uas yuav tsum yog a lis lus , delimited by dots (piv txwv, 'acs.

Ib yam li ntawd, dab tsi yog tus yuam sij routing?

Cov tus yuam sij routing yog cov lus attribute tus pauv saib thaum txiav txim siab yuav ua li cas rau txoj kev xa lus mus rau queues (nyob ntawm kev sib pauv hom). Kev sib pauv, kev sib txuas, thiab cov kab tuaj yeem teeb tsa nrog cov kev txwv xws li ruaj khov, ib ntus, thiab pib rho tawm thaum tsim.

Kuj Paub, dab tsi yog fanout hauv RabbitMQ? RabbitMQ – Fanout Txauv Fanout Exchange:-A fanout pauv yog ib qho pauv uas tau txais cov lus xa mus rau tag nrho cov kab uas khi rau nws. Thaum tus tsim khoom xa cov lus rau fanout pauv, nws luam cov lus thiab txoj kev mus rau tag nrho cov queues uas yog khi rau nws.

Cov lus nug tseem yog, Dab tsi yog Direct Exchange hauv RabbitMQ?

RabbitMQ – Direct Exchange Direct Exchange :-A ncaj qha pauv yog ib pauv uas txoj kev xa xov mus rau queues raws li cov lus routing key. Tus yuam sij routing yog cov lus qhia hauv cov lus header ntxiv los ntawm tus tsim tawm.

Dab tsi yog routing key hauv RabbitMQ?

Daim ntawv lo ( tus yuam sij routing ) piav txog lub payload thiab cov RabbitMQ messaging system siv qhov no los txiav txim seb leej twg yuav tau txais ib daim qauv ntawm koj cov lus. Tsis zoo li TCP - qhov twg koj yuav tsum qhia tus neeg xa khoom thiab tus txais - AMQP tsuas yog piav qhia cov lus nrog daim ntawv lo.

Pom zoo: