Puas yog Lambda khiav ntawm ec2?
Puas yog Lambda khiav ntawm ec2?

Video: Puas yog Lambda khiav ntawm ec2?

Video: Puas yog Lambda khiav ntawm ec2?
Video: puas yog tim tus aib pog i by sonie thoj paj vuam thoj zoo yaj nkauj tawm tshiab 2022 2024, Kaum ib hlis
Anonim

Khiav kev siv rau EC 2 piv txwv yog ib qho kev daws teeb meem zoo thaum daim ntawv thov yuav tsum yog khiav tsis tu ncua nyob rau hauv tag nrho ib hnub. Lambda . A Lambda muaj nuj nqi ib txwm muaj tab sis nws tsis yog khiav txhua lub sijhawm. Los ntawm default, lub Lambda kev ua haujlwm tsis ua haujlwm.

Ua li no, qhov txawv ntawm lambda thiab ec2 yog dab tsi?

Lub ntsiab txawv yog tias Lambda yog coj tuaj thiab spun cia cia li nyob rau hauv inbound qhov chaw / tshwm sim tshwm sim - ib yam dab tsi koj tsis tau tawm ntawm lub thawv nrog EC 2 . Rau koj cov haujlwm tsis muaj server, koj tsis them rau lub sijhawm tsis ua haujlwm lawm nruab nrab invocations, uas yuav txuag tau nyiaj ntau heev hauv khiav ntev.

Kuj Paub, yam lus twg zoo tshaj rau AWS Lambda? Python , Node , Java los yog C#. Ib yam ntawm cov lus no zoo heev siv nrog AWS Lambda. Tab sis tus kheej, kuv nyiam tshaj plaws nrog Python thiab Javascript / Node tawm ntawm cov lus no. AWS Lambda txhawb nqa ob lub sijhawm no.

Tom qab ntawd, ib tus tuaj yeem nug, yog AWS Lambda pheej yig dua ec2?

Khaws ob lub ntsiab lus hauv siab: Rau feem ntau lub sijhawm lossis lub teeb ua haujlwm, Lambda yog dramatically tsawg dua txawm qhov tsawg tshaj plaws EC 2 piv txwv. Tsom ntsoov rau lub cim xeeb thiab lub sijhawm ua tiav uas qhov kev hloov pauv hauv koj lub app yuav xav tau los txheeb xyuas qhov piv txwv me me rau qhov sib tsoo. Lambda nqi.

Kuv puas yuav tsum siv lambda lossis ec2?

Yog koj xav tau khiav cov ntawv thov uas xav tau ntau dua 900 vib nas this kom ua tiav lossis cov ntawv thov uas muaj lub sijhawm ua tiav, xav txog AWS EC2 . Lwm qhov txwv rau kev khiav Lambda muaj nuj nqi yog qhov siab tshaj plaws ntawm lub cim xeeb uas yog sib npaug rau 3008 MB.

Pom zoo: