Eureka Server yog ib daim ntawv thov uas tuav cov ntaub ntawv hais txog tag nrho cov neeg siv-kev pabcuamTxhua qhov kev pabcuam Micro yuav sau npe rau hauv Eureka server thiab Eureka server paub txhua daim ntawv thov kev pabcuam ua haujlwm ntawm txhua tus. chaw nres nkoj thiab IP chaw nyob. Eureka Server tseem hu ua Discovery Server.
Eureka qhov kev pabcuam nrhiav pom ua haujlwm li cas?
Nrog Netflix Eureka txhua tus neeg siv khoom tuaj yeem ua haujlwm ib txhij ua tus neeg rau zaub mov, kom rov ua nws cov xwm txheej rau cov phooj ywg sib txuas. Hauv lwm lo lus, tus neeg siv khoom khaws cov npe ntawm txhua tus neeg sib txuas ntawm cov npe kev pabcuamthiab ua rau txhua qhov kev thov ntxiv rau lwm cov kev pabcuam los ntawm kev sib npaug ntawm cov khoom sib npaug.
Dab tsi yog siv Discovery server?
Kev Tshawb Nrhiav Kev Pabcuam yog yuav ua li cas cov ntawv thov thiab (micro) cov kev pabcuam nrhiav ib leeg ntawm lub network. Kev nqis tes ua suav nrog ob lub hauv paus neeg rau zaub mov uas tuav lub ntiaj teb saib chaw nyob thiab cov neeg siv khoom uas txuas mus rau lub hauv paus server txhawm rau hloov kho thiab khaws cov chaw nyob.
Discovery server hauv Microservices yog dab tsi?
Zaj. Nyob rau hauv daim ntawv thov microservices, cov txheej txheem khiav kev pabcuam hloov dynamically. Cov xwm txheej tau muab cov chaw nyob hauv network dynamically. … Hauv cov tshuab uas siv server-side nrhiav pom, cov neeg siv khoom thov los ntawm lub router, uas nug cov kev pabcuam sau npe thiab xa mus rau qhov kev thov mus rau qhov muaj.
Koj hu li cas eureka server?
Kev Ua Haujlwm
- Tsim qhov project eureka server. Tsim ib daim ntawv thov khau raj caij nplooj ntoos hlav nrog rau cov kev hloov hauv qab no rau pom.xml.
- Ntxiv lub caij nplooj ntoos hlav huab eureka txhawb nqa. Ua kom peb cov neeg rau zaub mov ua Eureka Server @EnableEurekaServer annotation ntxiv.
- Configure application.properties / application.yml.