以下內容來自「玩轉騰訊雲」使用者原創文章,已獲得授權。
01。 什麼是 Serverless?
在《Serverless Architectures》中對 Serverless 是這樣子定義的:
Serverless was first used to describe applications that significantly or fully incorporate third-party, cloud-hosted applications and services, to manage server-side logic and state。 These are typically “rich client” applications—think single-page web apps, or mobile apps—that use the vast ecosystem of cloud-accessible databases (e。g。, Parse, Firebase), authentication services(e。g。, Auth0, AWS Cognito), and so on。 These types of services have been previously described as “(Mobile) Backend as a service“, and I use “BaaS” as shorthand in the rest of this article。 Serverless can also mean applications where server-side logic is still written by the application developer, but, unlike traditional architectures, it’s run in stateless compute containers that are event-triggered, ephemeral (may only last for one invocation), and fully managed by a third party。 One way to think of this is “Functions as a Service” or “FaaS”。(Note: The original source for this name—a tweet by @marak—isno longer publicly available。) AWS Lambda is one of the most popular implementations of a Functions-as-a-Service platform at present, but there are many others, too。
這樣的描述我相信有很多小夥伴不明白,我們可以這樣子來理解 Serverless:
它的中文直譯就是「無伺服器」,目前對於 Serverless 有幾種解讀方法:
在某些場景可以解讀為一種軟體系統架構方法,通常稱為 Serverless 架構
而在另一些情況下,又可以代表一種產品形態,稱為 Serverless 產品
可以理解為 Severless = FaaS + BaaS 即函式即服務 (Function as a Service) + 後端即服務 (Backend as a Service)。
02。 快速搭建 WordPress
第一步:進入 Severless 控制檯並完成授權,點選新建應用,選擇應用模板 — 快速部署一個 Wordpress 框架
第二步:填寫應用名,選擇環境和地域;
應用名稱:最短 2 個字元,最長 63 個字元,只能包含小寫字母、數字及分隔符 “-”、且必須以小寫字母開頭,數字或小寫字母結尾。應用名稱建立後無法修改。
環境分為:部署環境,實現開發、測試和生產環境
目前支援廣州,上海,北京三個地域
選擇完成後點選完成
第三步:等待部署完成。
部署時可以檢視部署日誌,部署通常需要 90 秒。
第四步:配置 WordPress
點選右上角的「訪問應用」,會開啟一個系統自動分配的域名,在此頁面完成 WordPress 的基本配置。
第五步:繫結自定義域名
在資源列表選項卡中找到基礎資訊欄
輸入自己的域名(因為部署在國內,需要使用已備案的域名)
完成後點選儲存即可。
Serverless 建站驚喜福利大派送!
建站計算資源雲函式 SCF、檔案儲存 CFS、雲原生資料庫 TDSQL-C、內容分發 CDN、API 閘道器資源月月送。
點選這裡
,檢視領取驚喜福利!
One More Thing
立即體驗騰訊雲 Serverless Demo,領取 Serverless 新使用者禮包
騰訊雲 Serverless 新手體驗
歡迎訪問:
Serverless 中文網
!