Skip to Content
マイクロサービスアーキテクチャ
book

マイクロサービスアーキテクチャ

by Sam Newman, 佐藤 直生, 木下 哲也
February 2016
Beginner to intermediate
344 pages
4h 27m
Japanese
O'Reilly Japan, Inc.
Content preview from マイクロサービスアーキテクチャ

6章デプロイ

モノリシックアプリケーションのデプロイは、かなり簡単なプロセスです。しかし、相互依存するマイクロサービスでは全く別の困った事態になります。デプロイは、適切に行わないと複雑になってしまい悲惨な目にあう分野の1つです。本章では、マイクロサービスを粒度の細かいアーキテクチャにデプロイする際に便利なテクニックと技術を調べていきます。

まずは継続的インテグレーションと継続的デリバリに目を向けます。これらの関連しているものの異なる概念は、構築するものやその構築方法とデプロイ方法を考えるときに下す決断に役立ちます。

6.1 継続的インテグレーションとは

継続的インテグレーション(CI:Continuous Integration)は、長年にわたって現在まで存在しています。しかし、特にマイクロサービス、ビルド、バージョン管理リポジトリ間のマッピングを考えるときには特に、考慮すべきさまざまな選択肢があるので、基本について少し時間を費やして調べる価値があります。

CIの主な目的はすべてを互いに常に同期させることであり、実際には新たにチェックインされたコードが既存コードと適切に統合(インテグレーション)されるようにすることで、これを実現します。そのために、CIサーバはコードがコミットされたことを検出し、そのコードをチェックアウトし、コードのコンパイルやテストの合格を確認するといった検証を実行します。

このプロセスの一環として、大抵はサービスをデプロイしてテストを実行するといった、追加の検証に使う成果物を作成します。理想的には、このような成果物を一度だけビルドし、そのバージョンのコードのすべてのデプロイでその成果物を使用したいでしょう。これは同じことを何度も実行するのを避け、デプロイされた成果物がテスト済みであることを確認できるようにするためです。このような成果物を再利用できるようにするために、CIツール自体が提供するか、または別のシステム上のある種のリポジトリに成果物を配置します。 ...

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

Go言語による並行処理

Go言語による並行処理

Katherine Cox-Buday, 山口 能迪
Javaパフォーマンス

Javaパフォーマンス

Scott Oaks, Acroquest Technology株式会社, 寺田 佳央, 牧野 聡
Kubernetesで実践するクラウドネイティブDevOps

Kubernetesで実践するクラウドネイティブDevOps

John Arundel, Justin Domingus, 須田 一輝, 渡邉 了介
オブザーバビリティ・エンジニアリング

オブザーバビリティ・エンジニアリング

Charity Majors, Liz Fong-Jones, George Miranda, 大谷 和紀, 山口 能迪

Publisher Resources

ISBN: 9784873117607Other