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
第八章
在本地工作
(如同在生產環境一般)
在開始建構持續交付管道之前,你必須先確保可以有效地使用本地開發機器上的程式碼
與系統。本章將介紹幾項關於這件事的固有挑戰(尤其是當你使用現代分散式系統,以
及以服務為基礎的架構時),接著討論 mock、服務虛擬化、基礎設施虛擬化(VM 與容
器)等技術,以及 FaaS app 的本地開發。
本地開發的挑戰
身為一位 Java 開發者,你通常很習慣設置簡單的本地開發環境來處理傳統的單體 web
app,這通常需要安裝作業系統、Java Development KitJDK)、組建工具(Maven
Gradle)與整合式開發環境(IDE),例如 IntelliJ IDEA Eclipse。有時你也要安裝中
介軟體或資料庫,或許還有 app 伺服器。這個本地開發設置很適合單一 Java app,但是
當你想要開發部署在雲端環境、容器協調框架,或無伺服器平台的多服務系統時,該怎
麼辦?
要開始製作有多項服務的 app,在一開始,最有邏輯的做法就是直接試著複製你的本地
開發做法來處理每一個新服務。但是,如同計算領域的許多事項,手動複製不是長久之
道,這種工作風格最大的問題是測試的整合成本,即使各個服務都有整合 / 元件等級的
測試,一旦你開發的服務數量多到一定程度,你就很難協調測試組態與初始化。你會經
常發現自己在本地啟動外部服務(藉著從 VCS 複製程式碼存放區、組建與執行)、處理
狀態、對著你正在開發的服務程式碼執行測試,最後確認外部服務的狀態。
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