DefaultZone hauv Eureka yog dab tsi?
DefaultZone hauv Eureka yog dab tsi?

Video: DefaultZone hauv Eureka yog dab tsi?

Video: DefaultZone hauv Eureka yog dab tsi?
Video: Yog ntuj tsis pab ntshe kuv tuag lawm 8/6/2018 2024, Kaum ib hlis
Anonim

daim ntawv thov.

Hauv qhov piv txwv ua ntej, " defaultZone " yog ib txoj hlua khawv koob poob qis uas muab qhov kev pabcuam URL rau txhua tus neeg siv khoom uas tsis qhia qhov nyiam (hauv lwm lo lus, nws yog qhov muaj txiaj ntsig zoo). Eureka Discovery Client, koj tuaj yeem teeb tsa eureka ua . tus neeg siv khoom. enabled rau cuav.

Ib sab ntawm no, Eureka server yog dab tsi?

Eureka Server yog ib daim ntawv thov uas tuav cov ntaub ntawv hais txog txhua daim ntawv thov kev pabcuam rau cov neeg siv khoom. Txhua qhov kev pabcuam Micro yuav sau npe rau hauv Eureka server thiab Eureka server paub tag nrho cov neeg siv daim ntawv thov khiav ntawm txhua qhov chaw nres nkoj thiab IP chaw nyob. Eureka Server tseem hu ua Discovery Server.

Qhov thib ob, Eureka Service Registry yog dab tsi? a kev pabcuam sau npe ( Eureka Server ), REST kev pabcuam uas registers nws tus kheej ntawm lub npe ( Eureka Client) thiab. ib daim ntawv thov web, uas yog siv REST kev pabcuam as a npe -paub tus neeg siv khoom (Lub Caij Nplooj Ntoos Hlav Netflix Feign Client).

Tsis tas li ntawd, Eureka qhov kev pabcuam nrhiav tau ua haujlwm li cas?

Xav tias nws yog kev nrhiav kev pabcuam qhov twg microservices (cov neeg siv khoom) ua tau sau npe lawv tus kheej thiab nrhiav pom lwm cov kev pabcuam microservices. Thaum tus neeg siv khoom microservice sau npe nrog Eureka nws muab cov metadata xws li tus tswv tsev, chaw nres nkoj, thiab ntsuas kev noj qab haus huv yog li tso cai rau lwm cov kev pabcuam micro nrhiav nws.

DiscoveryClient yog dab tsi?

DiscoveryClient thiab DynamicEndpoint yog ob chav kawm siv rau ntawm tus neeg siv khoom los tshawb nrhiav cov kev pabcuam. DiscoveryClient muab ib daim ntawv teev cov kev pab cuam uas phim cov txheej txheem tshwj xeeb thiab tso cai rau koj txuas rau cov kev pabcuam.

Pom zoo: