Skip to Content
持續交付|使用Java
book

持續交付|使用Java

by Daniel Bryant, Abraham Marín-Pérez
July 2019
Intermediate to advanced
480 pages
9h 35m
Chinese
GoTop Information, Inc.
Content preview from 持續交付|使用Java
68
| 第四章
將一切事項變成事件:全新的模式
不要低估使用 FaaS 無伺服器平台的事件驅動模型的學習曲線,這對許多
開發者來說是完全陌生的東西。我們看過一些開發者在建構 app 時,用
同步(會阻塞的)呼叫來串接功能,就像傳統的程序式開發一樣,這會做
出脆弱且不靈活的 app。我們百分之百建議你更深入學習事件驅動架構、
非同步編程,以及被動系統設計。
在使用 FaaS 時,你只要負責處理你的程式碼即可。FaaS 平台會管理計算(伺服器)機
群(fleet),平衡記憶體、CPU、網路與其他資源。但這些好處是用靈活性換來的,也
就是說,你無法登入計算實例,或自訂作業系統或語言執行環境。FaaS 平台利用這些限
制來幫你執行運維與管理動作,包括配置容量、監視機群健康、應用安全補丁、部署程
式碼,以及監視與 log 你的 Lambda 函式。
FaaS 帶來的挑戰
如同許多其他的現代部署平台,FaaS 技術最大的挑戰是學習曲線,原因不但是這種平
台與 Java 執行環境經常受到限制(與 PaaS 很像),也因為開發模式傾向事件驅動架構
EDA)。 FaaS app 通常由
反應性
功能組成的,app 功能是用事件來觸發的(例如有訊
息進入 MQ,或物件儲存器傳來的檔案上傳通知),而且功能的執行可能會產生副作用
(例如資料在資料庫內的持久保存)以及額外的事件。
FaaS 平台可以在你自己的基礎設施上運行,通常是在協調系統上面運行,例如
Kubernetes(例如 kubeless
http://kubeless.io/ ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

精實企業|高績效組織如何達成創新規模化

精實企業|高績效組織如何達成創新規模化

Jez Humble, Joanne Molesky, Barry O'Reilly
管理Kubernetes

管理Kubernetes

Brendan Burns, Craig Tracey
精通機器學習|使用Python

精通機器學習|使用Python

Sarah Guido, Andreas C. Mueller
数字化转型:企业破局的34 个锦囊

数字化转型:企业破局的34 个锦囊

Gary O’Brien, Xiao Guo, Mike Mason

Publisher Resources

ISBN: 9789865021740