Redis Pubsub yog dab tsi?
Redis Pubsub yog dab tsi?

Video: Redis Pubsub yog dab tsi?

Video: Redis Pubsub yog dab tsi?
Video: Redis PubSub - Redis CLI Course | 10 2024, Kaum ib hlis
Anonim

Redis Pub/Sub siv cov kev xa xov uas cov neeg xa khoom (hauv redis terminology hu ua publishers) xa cov lus thaum lub receivers (subscribers) tau txais lawv. Qhov txuas uas cov lus xa mus yog hu ua channel. Hauv Redis , tus neeg siv khoom tuaj yeem sau npe txhua tus channel.

Yog li ntawd, lub pub / sub ua haujlwm li cas?

Publish/subscribe Message, los yog pub / sub Kev xa xov, yog ib hom kev pabcuam asynchronous-rau-kev pabcuam kev sib txuas lus siv hauv serverless thiab microservices architectures. Hauv ib pub / sub qauv, ib qho lus tshaj tawm rau lub ncauj lus tau txais tam sim ntawd los ntawm tag nrho cov neeg rau npe rau lub ncauj lus.

Ib tug kuj yuav nug, Redis MQ yog dab tsi? Redis MQ Client / Server A redis -raws li lus kab tus neeg siv khoom / server uas tuaj yeem tuav hauv ib qho twg. NET lossis ASP. NET daim ntawv thov. Tag nrho Redis MQ Hosts nyob hauv ServiceStack. Server project thiab nqa cov txiaj ntsig ntau ntawm kev siv a Xov Queue.

Tib neeg kuj nug, Redis puas tuaj yeem siv los ua tus xa xov?

Hauv nws qhov tseem ceeb, Redis yog ib lub cim xeeb khaws cia uas ua tau ua siv raws li ib qho kev ua tau zoo ntawm cov khoom tseem ceeb-tus nqi lossis raws li a lus broker . Nws kuj zoo meej rau kev ua cov ntaub ntawv hauv lub sijhawm.

Pub/sub architecture yog dab tsi?

Publish-subscribe ( pub / sub ) yog tus qauv xa xov uas cov tshaj tawm thawb cov lus rau cov neeg siv khoom. Hauv software architecture , pub / sub messaging muab cov ntawv ceeb toom xwm txheej tam sim rau cov ntawv thov sib faib, tshwj xeeb tshaj yog cov uas tau muab faib ua cov tsev me me, ywj siab.

Pom zoo: