Skip to Content
図解まるわかり クラウドのしくみ
book

図解まるわかり クラウドのしくみ

by 西村 泰洋
September 2020
Beginner to intermediate
232 pages
6h 4m
Japanese
Shōeisha
Content preview from 図解まるわかり クラウドのしくみ
146
コンテナ化するサービスのピックアップ
 第4章ではコンテナと関連する技術について解説してきました。現在の
クラウドサービスをけん引している技術のひとつですが、ここで既存のア
プリケーションをコンテナ化するための練習をしておきたいと思います。
 コンテナの上級者は、「1 サービス(アプリ)/ 1コンテナ」で実装して
いる人が多いようですが、これをひとつの基準と考えて進めてみます。
 次のようなケースで、どのようにコンテナ化するか検討してみてくださ
い。答えはもちろんいくつかあると思います。
アプローチ例
その1
 マイクロサービス化を目指すことと、コンテナ内の部品を入れ替えて他
のコンテナに影響が出なければよいことから、分析結果表示サービス
(OSS1 起動+分析結果表示処理)、データ分析サービス(OSS2起動+デ
ータ分析処理)のように、3つのコンテナにします。例えば現実に、後で
OSS1 から OSS4 への入れ替えなどがありえますが、別のコンテナに影響
を与えずに修正できます。
その2
 ケースをデータの流れで見ると実は同じデータを扱っています。同じデ
ータを扱う1つのサービスと捉えて 1 つのコンテナ内にパッキングします。
 ここではサービスで分ける例と扱うデータで分ける例を紹介しました
が、何のためにどのように分けるかで切り方は変わります。
やってみよう
ケース:
Web上で売上⼀覧などを表⽰するために、次の 3 つの機能から構成されている
●
OSS1を利用した表⽰サービス
●
OSS2を利用した表⽰のも
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

図解まるわかり プログラミングのしくみ

図解まるわかり プログラミングのしくみ

増井 敏克

Publisher Resources

ISBN: 9784798168272