Skip to Content
『クラウドネイティブJavaの最適化 第2版』
book

『クラウドネイティブJavaの最適化 第2版』

by Benjamin J. Evans, James Gough
March 2025
Intermediate to advanced
496 pages
7h 17m
Japanese
O'Reilly Media, Inc.
Content preview from 『クラウドネイティブJavaの最適化 第2版』

第9章 クラウドでJavaを展開する クラウドでJavaをデプロイする

この作品はAIを使って翻訳されている。ご意見、ご感想をお待ちしている:translation-feedback@oreilly.com

第8章では、クラウドスタックの基礎的な側面 。この章では、このトピックをさらに進め、Javaプロセスをクラウドネイティブプラットフォームにデプロイする実践的な側面を見ていく。

まずはローカルでコンテナを使って作業し、デプロイ時にコンテナがどのように相互作用するのか、その基本を理解するところから始める。 相互作用やデプロイ方法の詳細から、コンテナ・オーケストレーションの仕組みや注意すべき点について見ていく。

クラウド・ネイティブ・プラットフォームの非常に有用な側面の1つは、エフェメラルなコンピュートへのアクセスとスケール能力であるが、これを有用なものにするには座標が必要である。 これらの基本を押さえた上で、リリースとデプロイプメント・パターンのオプションについて学ぶ。 デプロイプメント・テクニックは、JVMベースのプロセスに変更を迅速に展開する際に非常に有用であり、同時にバグのリスクを軽減する。

開発者であれば、デプロイが本当に考慮すべき重要な点なのか疑問に思うかもしれない。 歴史的には、ソフトウェアを構築し、運用チームにそれを渡して実行していたかもしれない。 しかし、クラウドネイティブ開発における大きな変化の1つは、運用と開発の行が曖昧になったことである。それゆえ、 "DevOps "という言葉が生まれた。

例えば、本番システムと非本番システムで一貫した環境を構築する方がはるかに簡単である。その結果、多くのチームが、サービスの構築とサポートのバランスを発見し、 「構築と演算子」チームとして運用することを選択している。単一チームとして構築と演算子を行うことで、効率(or「ベロシティ」)が向上する。 効率性の向上は、開発から運用への引き継ぎにおけるミスコミュニケーションやフラストレーション、エラーの減少によってもたらされる。 ビルド&ラン・チームは、深い専門知識とスタック全体に対する責任感を育む。 ビルド&ラン・チームで働くことで、仕事への満足度が向上し、熱心なチームになる。

まず、コンテナをローカルで扱う方法から見ていこう。

コンテナを使ってローカルで作業する

イメージとコンテナ」では、イメージとコンテナの基礎について入門書を取り上げた。 コンテナ の利点の1つは、デプロイ時にローカルマシンにより代表的な環境を作成できることだ。コンテナは、開発者のマシンのオペレーティングシステムとランタイムマシンとの違いを調整するのに関連していた手間をすべて省いてくれる。

以下のコマンドを実行すると、Fighting Animalsデモからmammal_demo 。しかし、curl ステートメント を実行しても、依存関係、つまり他のサービスが利用できないため、実際には動作しない:

git clone https://github.com/kittylyst/fighting-animals.git . git checkout main mvn clean package docker build -t mammal_demo -f src/main/docker/mammal/Dockerfile . docker run -p 8081:8081 -t mammal_demo curl localhost:8081/getAnimal {"timestamp":"2024-04-29T17:18:00.170+00:00","status":500, ...
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

仕事ではじめる機械学習 第2版

仕事ではじめる機械学習 第2版

有賀 康顕, 中山 心太, 西林 孝
Linuxカーネルプログラミング 第2版

Linuxカーネルプログラミング 第2版

Kaiwan N. Billimoria, 武内 覚, 大岩 尚宏
プログラミングRust 第2版

プログラミングRust 第2版

Jim Blandy, Jason Orendorff, Leonora F. S. Tindall, 中田 秀基
詳解 システム・パフォーマンス 第2版

詳解 システム・パフォーマンス 第2版

Brendan Gregg, 西脇 靖紘, 長尾 高弘

Publisher Resources

ISBN: 9798341633346