Skip to Content
Java持续交付
book

Java持续交付

by Daniel Bryant, Abraham Marín-Pérez
November 2019
Beginner to intermediate
406 pages
9h 21m
Chinese
Publishing House of Electronics Industry
Content preview from Java持续交付
部署应用程序
205
部署
它是一个技术术语,指的是在生产环境中使用某个服务新的二进制包的行为。
发布
它是一个业务术语,指的是向用户提供某个指定功能的行为。
大多数时候,部署和发布会发生在同一时间,比方说,通常当你实现某个新功能后,它
会作为部署的一个环节被发布到生产环境中。但是有时候只会发生其中一个行为。例如,
当开发人员在不改变功能的前提下,重构了某段特定的代码,然后将其部署到生产环境
中,我们会认为这是一次无须发布的部署。你还可以添加一个新功能,但是把它隐藏在
一个“开关”后面(请参阅本章后面“功能开关”一节),这种部署也不需要发布。另
一方面,如果某个功能隐藏在某个开关背后,并且不需要重新部署就可以更改该开关,
那么你也可以在不部署的情况下发布一个新的功能。
理解部署和发布是两个相关但又独立的行为,对于创建持续交付的环境至关重要 :它既
让开发团队可以根据需要自由地部署新版本,同时又让产品负责人对给用户使用的功能
进行完全控制。因为它们的确是不同的行为,所以它们需要不同的工具和技术,这是下
一节我们要介绍的重点。
部署应用程序
虽然根据不同的部署平台,某些部署操作会有所不同,但是无论是什么平台,你需要考
虑的问题都是相同的。通常,应用程序的部署会受以下行为的影响。
创建可发布的构件
这个构件是一个包含了应用程序代码(也可能包含配置文件,更多信息请参考本章
后面的“管理配置和敏感信息”一节)的二进制文件,它会被发送到运行应用程序
的计算机上。可发布的构件可以有多种格式(胖
JAR
WAR
EAR
Buildpack ...
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

Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu
Java性能优化实践:JVM调优策略、工具与技巧

Java性能优化实践:JVM调优策略、工具与技巧

Benjamin J. Evans, James Gough, Chris Newland
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
C++语言导学(原书第2版)

C++语言导学(原书第2版)

本贾尼 斯特劳斯特鲁普

Publisher Resources

ISBN: 9787121374425