Host based routing yog dab tsi?
Host based routing yog dab tsi?

Video: Host based routing yog dab tsi?

Video: Host based routing yog dab tsi?
Video: Niam Txiv Noj Dab Tsi Yug-Paj Huab Vaj & Yias Yaj (re-upload) 2024, Kaum ib hlis
Anonim

Tus tswv - raws txoj kev enables koj txav tau ntau ntawm cov txoj kev logic rau koj daim ntawv thov thiab cov vev xaib rau Daim Ntawv Thov Load Balancer. Tam sim no koj tuaj yeem taug kev mus rau ntau qhov chaw ntawm ib qho kev thauj khoom sib npaug los ntawm txoj kev txhua tus tswv tsev npe rau ib qho sib txawv ntawm EC2 piv txwv lossis ntim.

Kuj nug, txoj kev raws li txoj kev yog dab tsi?

URL Path Based Routing tso cai rau koj taug kev khiav mus rau back-end server pas raws ntawm URL Txoj kev ntawm qhov kev thov. Ib qho ntawm cov xwm txheej yog kom xa cov kev thov rau cov ntsiab lus sib txawv rau cov sib txawv backend servers. Qhov no ua kom cov tsheb khiav mus rau sab xis rov qab kawg.

Tsis tas li ntawd, cov neeg mloog dab tsi koj tuaj yeem teeb tsa koj daim ntawv thov load balancer kom txais? Daim ntawv thov Load Balancers muab kev txhawb nqa haiv neeg rau WebSockets. Koj ua tau siv WebSockets nrog HTTP thiab HTTPS cov neeg mloog . Daim ntawv thov Load Balancers muab kev txhawb nqa haiv neeg rau HTTP/2 nrog HTTPS cov neeg mloog . Koj ua tau xa mus txog 128 thov nyob rau hauv parallel siv ib HTTP/2 kev sib txuas.

Tib neeg kuj nug, http routing yog dab tsi?

Txoj kev . Txoj kev txiav txim seb tus neeg tuav ntaub ntawv twg tau txais kev thov tshwj xeeb. Tus tuav yog ib txoj haujlwm tshwj xeeb rau kev txais thiab ua raws li qee qhov kev thov. Kev thov raug xa mus raws li ob daim ntawv qhia: lub HTTP thov txoj kev, thiab txoj kev thov. A txoj kev hais txog ib HTTP txoj kev, txoj kev, thiab handler ua ke.

Dab tsi yog listener nyob rau hauv load balancer?

Yog, lub load balancer yog ib qho piv txwv EC2 los muab cov kev pabcuam sib tham thiab suav cov kev pabcuam uas xav tau rau thauj sib npaug. Ib Lub Hom Phiaj Pab Pawg yog siv los xa cov lus thov mus rau ib lossis ntau lub hom phiaj (koj qhov EC2 piv txwv). A mloog yog txheej txheem uas "TCP Mloog" rau kev thov los ntawm cov neeg siv khoom.

Pom zoo: