Nws yog ib qho tseem ceeb kom nkag siab txog dab tsi serverless tiag tiag cuam tshuam vim nws tsis txhais hais tias tsis muaj server.
Qhov tseeb, raws li tus tsim tawm, koj tsis muab rips txog lub server hauv keeb kwm yav dhau. Vim tias cov cai uas tus tsim tawm yuav tsum tau khiav ntawm qhov chaw, ib txwm muaj lub server ua haujlwm hauv keeb kwm yav dhau.
Qhov txawv yog tias yog tias koj yog tus tsim tawm, koj tsis tas yuav txhawj xeeb txog kev tsim, tswj, lossis xa cov neeg rau zaub mov lossis sau cov lej ntsig txog server.
Koj tsis muaj lub luag haujlwm rau ib qho ntawm cov khoom ntawd lawm, yog li koj tsis tas txhawj txog lawv.
Koj yuav tsum tso koj txoj kev mloog rau kev tsim cov cai raws li tus tsim tawm thiab tsis yog ntawm cov txheej txheem.
Serverless Frameworks
Txoj kev tsim thiab siv huab-based apps yog serverless. Cov huab infrastructure yog tswj hwm los ntawm huab cua, tsis yog los ntawm cov neeg tsim khoom.
Lawv tsuas yog yuav tsum tau them tus nqi raws li kev siv.
Lub serverless lub moj khaum yog lub platform uas tso cai rau koj los tsim cov kev pabcuam kev pabcuam-cov ntawv thov uas ua kom muaj txiaj ntsig zoo ntawm lawv tus kheej thaum tsuas yog tus nqi koj pennies-thiab tam sim no suav nrog kev saib xyuas, kuaj, thiab cov cuab yeej ruaj ntseg los pab koj tswj cov ntawv thov no.
Wb tam sim no tshuaj xyuas ntau hom serverless lub hom phiaj hauv kev nthuav dav ntxiv.
1. Tsis muaj neeg rau zaub mov
Tej zaum koj yuav xav tias ib tug neeg uas muaj hmoo txaus kom ruaj ntseg lub npe Serverless.com tsuas yog them nyiaj rau lawv cov hmoov zoo, tab sis kuv yuav tsum paub tseeb tias qhov no tsis yog qhov teeb meem.
Qhov zoo tshaj plaws serverless lub moj khaum yog Serverless Framework, uas muaj tshaj 43,000 hnub qub nyob rau GitHub.
Qhov nrov serverless lub moj khaum yog Serverless, uas yog tsim los pab cov neeg tsim khoom tsim cov apps rau AWS Lambda.
Nrog Lambda thiab lwm lub platform FaaS, nws tso cai rau koj los tsim, xa tawm, thiab tswj cov ntawv thov tsis muaj server sai. Ntxiv rau Kubeless thiab Apache OpenWhisk, nws txhawb Azure Functions, Google Cloud Functions, thiab ntau dua.
Cov txheej txheem tsim nyog rau cov haujlwm thiab cov xwm txheej tau txais los ntawm Serverless Framework.
Yog li ntawd, koj tuaj yeem tsim cov haujlwm nyuaj, kev tshwm sim-tsav los yog microservices uas yuav ntsuas lawv tus kheej raws li qhov xav tau.
Tsis tas li ntawd, vim tias nws yog tus muab kev pabcuam nruab nrab, koj tuaj yeem ntim thiab xa cov apps hla ntau huab, suav nrog Google Cloud, Azure, AWS, thiab lwm yam.
Tsis tas li ntawd, koj tuaj yeem nthuav dav nws cov ntaub ntawv siv los ntawm kev hloov cov haujlwm ntawm lub moj khaum siv plugins.
Rau kev tsim cov ntaub ntawv siv uas tam sim no tsis tau them, Serverless muaj qhov dav ecosystem ntawm plugins.
2. AWS Charlie
Puas yog koj tab tom nrhiav Python lub moj khaum los tsim cov ntawv thov serverless?
AWS Chalice is a Python serverless thov kev txhim kho platform uas yog ib qhov project rau Python enthusiasts.
Nws muaj microframework uas tso cai rau kev txhim kho daim ntawv thov sai thiab xa mus siv AWS Lambda thiab API Gateway.
Chalice cia li teeb tsa cov peev txheej tsim nyog, ua rau koj khiav nrawm thiab xa cov serverless microservices thiab web daim ntaub ntawv.
tas li ntawd, TSEEM APIs tuaj yeem xa mus sai rau AWS siv Chalice CLI. Tsis tas li ntawd, nws yooj yim los tsim CI / CD cov kav dej txij li Chalice tau tsim cov kav dej xa mus siv AWS CodeBuild thiab CodePipeline.
Piv txwv li, CyberArk tau tsim cov serverless microservices siv Chalice thiab cov txheej txheem loj dua nrog AWS CDK. Cov neeg tsim tawm kev hloov pauv ntawm qhov chaw nyob rau hauv huab cua tau ua kom yooj yim dua los ntawm Chalice.
Kev koom ua ke Amazon API Gateway, Amazon S3, Amazon SNS, Amazon SQS, thiab lwm yam kev pabcuam AWS txhim kho API.
Chalice yog Python-centric, yog li cov neeg siv yuav raug txwv rau cov kev pabcuam tsim hauv Python.
3. Claudia.js
Nws ua haujlwm ntau dua li cov cuab yeej xa tawm ntau dua li lub hauv paus.
Nws yog cov cuab yeej qhib uas tso cai rau cov neeg siv tau sai thiab yooj yim xa cov ntawv thov Node rau hauv AWS Lambda thiab API Gateway (tsis paub txog servers lawv tus kheej).
Nws teeb tsa JavaScript ib puag ncig tau txais thiab automates configuration thiab xa mus ua hauj lwm.
Tsis tas li ntawd, nws tuaj yeem siv yam tsis muaj kev txhawj xeeb txog hosting, scalability, thiab lwm yam raws li tus neeg siv-sab code lossis serverless functions.
Kev tshwm sim-tsav apps thiab nws pib-scaling web APIs tuaj yeem tsim thiab xa mus sai thiab tsis muaj kev txhawj xeeb los ntawm cov neeg tsim khoom vim li ntawd.
Nws cov tsev qiv ntawv txuas ntxiv ua rau cov neeg siv tau yooj yim tsim chatbots thiab Web API qhov kawg. Nws yog ib txoj hauv kev zoo los tswj ntau lub vev xaib ntawm koj lub xaib tib lub sijhawm yam tsis muaj kev cuam tshuam qhov yooj yim thiab txaus siab uas koj tau los ntawm Claudia.
Nws suav nrog cov cuab yeej tswj hwm yooj yim, tso cai rau koj ua haujlwm ntawm ntau lub versions tib lub sijhawm yam tsis muaj kev txhawj xeeb txog kev tsis sib haum xeeb lossis poob rau hauv hiav txwv ntawm txoj cai.
4. Zappa
Zappa, lwm Python lub moj khaum, yog yooj yim rau siv thiab nplua nuj nyob rau hauv nta. Nws tso cai rau koj los tsim thiab xa cov kev tshwm sim-tsav serverless Python-raws li apps rau AWS Lambda hauv ib qho seamless.
Zappa kuj tseem yog lub hauv paus nrov rau kev tsim WSGI-raws li apps thiab tej yaam num.
Nws yog sib xws nrog ze li ntawm WSGI-raws li lub moj khaum, xws li Pyramid, Lub raj mis, thiab txawm Django.
Tsis tas li ntawd, thaum siv nrog Flask, Zappa yog qhov zoo tagnrho rau serverless hosting ntawm kev nyuaj. web daim ntaub ntawv, duab ua, ntawv ua, thiab tus lej crunching.
Zappa configures deployment parameters cia li. Xa daim ntawv thov mus rau theem tsim khoom siv ib kab hais kom ua thaum cov chaw tau teev tseg kom tsim nyog.
Yog tias koj xav tau API Gateway CloudFormation template, siv cov template hais kom ua.
Siv daim ntawv pov thawj SSL, AWS Certificate Manager daim ntawv pov thawj, thiab Cia's Encrypt daim ntawv pov thawj kom xa Zappa rau kev cai subdomains thiab cov npe sau npe.
Pab kom API Gateway cov ntsiab lus ruaj ntseg, suav nrog API key, IAM txoj cai, Lambda Authorizers, Cognito User Pool Authorizers, thiab Resource Policy.
Tsis tas li ntawd, siv cov ntaub ntawv S3, koj tuaj yeem hloov pauv qhov hloov pauv ib puag ncig rau ib puag ncig hauv zos, thaj chaw AWS thaj tsam, thiab ib puag ncig nyob deb.
5. kws kes duab vajtse
Tus kws kes duab vajtse yog lub hauv paus muaj zog rau kev tsim sai, hloov tshiab, thiab scalable huab-native apps.
Nws yog ib lub moj khaum thiab kev qhia. Nws ua rau cov programmers sai sai tsim serverless architecture siv cov lej tsawg, tsis muaj kev cai, thiab kev teeb tsa succinct.
Lawv tuaj yeem tsom mus rau kev lag luam logic nkaus xwb. Tsis tas li ntawd, koj tsuas yog them rau cov kev pabcuam uas tau siv, thov, lossis ntsuas qis rau xoom.
Architect yog tsim los tsim cov ntawv thov web nrog kev txhawb nqa database. Hauv kev txiav txim siab, nws yog qhov kev tshaj tawm rau AWS SAM.
Yog li, txhua yam uas tuaj yeem ua tiav nrog SAM tuaj yeem ua tiav nrog Architect.
Txawm li cas los xij, lub moj khaum ua tau zoo ntawm kev tsim web apps. Txhawm rau ua kom yooj yim xa mus, tus kws tsim vaj tsev siv cov thev naus laus zis zoo li Google Cloud Build thiab G Init cov xwm txheej.
Tsis muaj tib neeg ua haujlwm, tus kws tsim vaj tsev siv cov ntaub ntawv app.arc los tsim cov cai tau teeb tsa thiab muab raws li cov neeg siv kev tso cai.
Tsuas yog khiav lawv cov ntawv sau, pab Javascript developers hauv kev sau ntawv, debugging, thiab sim lawv cov kev lag luam logic.
6. Sigma
Ib qho tshiab huab-raws li IDE hu ua Sigma yog raws li lub tswv yim ntawm kev txhim kho serverless.
Qhov no yog tag nrho-featured IDE uas tso cai rau koj los tsim cov cai thiab tshaj tawm nws raws li daim ntawv thov nyob hauv lub sijhawm. Nws tsis yog ib qho yooj yim nyeem ntawv editor nrog ob peb zoo nkauj nta.
Sigma IDE tuaj yeem sib txuas lus rov qab mus rau serverless (FaaS) platform ntawm koj xaiv, tab sis tsuas yog muaj cov ntaub ntawv teeb tsa.
Raws li qhov tshwm sim, koj tuaj yeem zam dhau los ua cov haujlwm tedious rau ntau teev. Sigma yog serverless los ntawm xwm, nyob rau hauv sib piv rau lwm yam kev pab cuam uas sim ua kom tiav lub hom phiaj sib piv.
Muaj qee qhov kev zam, IDE tuaj yeem siv yam tsis muaj kev pabcuam rov qab los ntawm kev khiav ib leeg hauv browser. Hauv particular, lub back-end yog tsim nyog los sau cov ntaub ntawv txheeb xyuas thiab txheeb xyuas cov neeg siv.
Cov ntawv thov raug xa mus ntxiv thiab txuas nrog ntau lwm yam AWS Services, suav nrog DynamoDB, AWS Lambda, thiab AWS API.
NodeJS tau txais kev txhawb nqa zoo los ntawm Sigma IDE vim nws tso cai rau kev siv sijhawm tiag tiag. Nws yog ib qho tseem ceeb uas yuav tsum tau saib xyuas qhov no thiab muab nws sim.
7. dav hlau
Koj puas nyiam Ruby?
Tom qab ntawd koj tuaj yeem txaus siab rau Jets, lub serverless Ruby Framework rau kev tsim thiab siv microservices. Koj tuaj yeem tsim cov qauv API thiab xa lawv mus rau Lambda nrog lub moj khaum cov khoom siv dav dav.
Dav hlau kuj tseem siv tau los tsim cov haujlwm ib leeg uas txuas ntau yam AWS cov kev pabcuam thiab cov peev txheej.
Koj qhov chaws tam sim no tau hloov pauv mus ua haujlwm rau Lambda thiab lwm yam kev pabcuam AWS ntawm Jets moj khaum.
Qhov no tso cai rau koj siv sijhawm ntau los tsim cov cai ua haujlwm los ntawm kev hla dhau cov txheej txheem xws li kev xa mus thiab kev npaj.
Ruby code tuaj yeem sau los ntawm cov neeg tsim khoom thiab hloov mus rau hauv Lambda lub luag haujlwm thiab Amazon API Gateway cov peev txheej los ntawm Jets.
Raws li qhov tshwm sim, Jets tso cai rau koj los tsim ntau yam qauv tsim, xws li cov ntawv thov API online, cov txheej txheem tsav tsheb, IoT architecture, thiab ntau dua.
Txhawm rau txuag lub sijhawm, nws tau tsim los tso cai rau cov lej hloov pauv tau yooj yim rau hauv lambda lub luag haujlwm thiab AWS cov peev txheej.
8. AWS Serverless Application Model
Txhawm rau muab nws yooj yim, AWS SAM ua rau nws yooj yim dua los tsim serverless apps uas koom nrog ntau yam kev pabcuam AWS.
Nws ua rau nws yooj yim dua los tsim, xa tawm, thiab debug serverless apps hauv AWS ib puag ncig vim tias nws yog lub luag haujlwm serverless xa tawm los ntawm AWS.
Nrog SAM's shorthand syntax, cov neeg tsim khoom tuaj yeem piav qhia cov peev txheej hauv ib feem ntawm cov kab xav tau nrog AWS CloudFormation. Nrog AWS SAM, koj tuaj yeem tsim ntau yam apps, suav nrog cov kev tshwm sim uas tau tsav los ntawm asynchronous.
Tsis tas li ntawd, nws ua rau Docker-raws li duab-raws li Lambda ua haujlwm, ua kom muaj txiaj ntsig zoo rau kev txhim kho serverless.
Siv AWS Lambda, API Gateway, DynamoDB cov rooj, thiab S3 cov kev pabcuam ua lub hauv paus, lub moj khaum nquag siv los ua kom siv cov kev xa tawm ntawm cov ntawv thov tsis muaj server.
Cov ntawv thov teev tseg los ntawm SAM templates lossis AWS CDK tuaj yeem tsim, sim, thiab debugged hauv zos siv SAM CLI's Lambda zoo li kev ua haujlwm ib puag ncig.
Cov neeg tsim khoom tuaj yeem kuaj cov lej hloov pauv hauv huab nrog SAM Accelerate rau huab-raws li kev txhim kho, tshem tawm qhov xav tau rau hauv zos emulation rau serverless apps. txuas mus rau ntau yam sib txawv serverless AWS cov khoom.
Nws suav nrog ntau yam kev siv SAM CLI cov lus txib (xws li sam init, sam cav, thiab sam pob, ntawm cov neeg nyiam).
9. Flogo
Flogo yog qhov zoo tshaj plaws rau Docker-based serverless thov kev txhim kho.
Nws yog qhov qhib qhov chaw ecosystem nrog cov xwm txheej-tsav cov yam ntxwv uas ua rau nws yooj yim dua los tsim cov khoom siv niaj hnub no, paub txog serverless apps.
Nws muaj cov txheej txheem tsim los tsim sai sai, xa tawm, thiab tswj cov apps ntawm AWS Lambda siv cov duab Docker nkaus xwb thiab sau ua lus Golang programming.
Project Flogo tau siv los ntawm ntau lub lag luam, suav nrog Thingstream, Liturgical Publishing, Biogen, Cosentino, thiab Campari Group, los txhawb lawv cov kev siv.
CargoSmart, piv txwv li, yuav ntiav AI los txheeb xyuas cov ntaub ntawv IoT los txhim kho cov neeg siv kev paub dhau los ntawm kev txiav txim siab zoo dua.
Nws tau siv Flogo qhov yooj yim hauv kev sib koom ua ke tshuab kev kawm (ML) cov qauv.
Nws muaj cov kev daws teeb meem rau ntau lub lag luam uas yuav tsum tau hnov mob sai thiab tsim cov apps sai sai kom txuag tau sijhawm.
Golang programming lus thiab pom lub vev xaib UI tau txais kev txhawb nqa los ntawm Flogo thiab tuaj yeem siv los tsim thiab tsim koj cov apps.
10. AWS Ua Tau Zoo
Siv AWS Amplify lub moj khaum kom yooj yim tsim scalable serverless apps rau lub vev xaib thiab mobile platforms thiab txaus siab rau qhov tsis muaj kev txwv.
Siv cov txheej txheem ntse, koj tuaj yeem teeb tsa koj cov serverless backends nrog cov ntaub ntawv, khaws cia, kev lees paub, thiab lwm yam.
Nrog tsawg kab ntawm cov cai, txuas cov ntawv thov mobile thiab web rau cov kev pabcuam AWS tshiab lossis uas twb muaj lawm.
Ib nplooj ntawv web apps, server-sab rendered apps, thiab cov xwm txheej webpages tuaj yeem tuav thiab xa tawm nrog ob peb clicks xwb.
Tsis tas li ntawd, nws ua rau nws yooj yim los tswj cov neeg siv app thiab cov ntsiab lus. Front-end mobile thiab web developers tuaj yeem tsim cov apps tag nrho ntawm AWS sai dua thiab hloov lub app txhua lub sijhawm koj xav tau nrog kev pab ntawm AWS Amplify.
Ntau lub web moj khaum, suav nrog React, Angular, JavaScript, Vue.js, Next.js, thiab lwm yam, nrog rau mobile platforms, suav nrog iOS, Ionic, Flutter, Android, thiab React Native, tau txais kev txhawb nqa los ntawm Amplify.
xaus
Tam sim no peb tau them rau saum cov serverless lub moj khaum uas koj tuaj yeem koom ua ke rau hauv koj daim ntawv thov.
Cov thev naus laus zis no tso cai rau peb tshaj tawm cov ntawv thov rau kev lag luam sai dua thiab nce tus nqi los ntawm kev ua kom zoo rau koj daim ntawv thov, nrog rau kev txuag nyiaj thiab cov peev txheej los ntawm kev ntsuas cov peev txheej raws li kev xav tau ntawm cov tsheb.
Cov qauv tshiab tshaj plaws hauv kev tsim thiab xa peb cov huab-raws li apps yog serverless xam. Ntau ntau lub tuam txhab tsis muaj npe tshiab yuav raug tsim nyob rau xyoo tom ntej kom yooj yim rau kev daws teeb meem kev lag luam, txo cov nqi, thiab muab cov cuab yeej siv nrog qee cov txiaj ntsig ntxiv.
Sau ntawv cia Ncua