Skip to Content
ソフトウェアアーキテクチャの基礎 第2版 ―エンジニアリングに基づく体系的アプローチ
book

ソフトウェアアーキテクチャの基礎 第2版 ―エンジニアリングに基づく体系的アプローチ

by Mark Richards, Neal Ford, 島田 浩二
March 2026
Beginner to intermediate
560 pages
8h 12m
Japanese
O'Reilly Japan, Inc.
Content preview from ソフトウェアアーキテクチャの基礎 第2版 ―エンジニアリングに基づく体系的アプローチ

10章レイヤードアーキテクチャ

レイヤードアーキテクチャn層アーキテクチャ)は、最も一般的なアーキテクチャスタイルの1つだ。そのシンプルさや親しみやすさ、コストの低さから、かねてより多くのアプリケーションにとってのデファクトスタンダードとなっている。

レイヤードアーキテクチャは、暗黙のアーキテクチャ†1や偶有的アーキテクチャといったアンチパターンに陥りやすいアーキテクチャスタイルでもある。開発者やアーキテクトが「どのアーキテクチャスタイルを使用しているかわからないまま、ただコードを書き始める」場合に、このスタイルを実装する可能性が高いからだ。

10.1 トポロジー

レイヤードアーキテクチャでは、コンポーネントは水平方向の論理的なレイヤーとして編成される。図10-1に示すように、各レイヤーはアプリケーション内で特定の役割(プレゼンテーションロジックやビジネスロジックなど)を果たす。存在しなくてはならないレイヤーの数や種類については特に制限はないが、ほとんどのレイヤードアーキテクチャは、プレゼンテーション層、ビジネス層、永続化層、データベース層の4つの標準レイヤーで構成されている。特に、永続化ロジック(SQLやHSQLなど)がビジネス層のコンポーネント内に組み込まれている場合は、永続化層はビジネス層に統合されることもある。小規模なアプリケーションではレイヤーは3つのこともあるが、大規模で複雑なビジネスアプリケーションではレイヤーは5つ以上になることもある。

図10-1 レイヤードアーキテクチャにおける標準的な論理レイヤー

図10-2は、物理的なレイヤリング(デプロイメント)の観点からのトポロジーのバリエーションを示している。1つ目のバリエーションでは、プレゼンテーション層、ビジネス層、永続化層が単一のデプロイメントユニットに統合されている。この場合、データベース層は通常、独立した外部物理データベース(またはファイルシステム)として表現される。2つ目のバリエーションでは、プレゼンテーション層が独自のデプロイメントユニットに物理的に分離され、ビジネス層と永続化層が第二のデプロイメントユニットとして統合されている。この場合も、データベース層は外部データベース(ファイルシステム)として物理的に分離される。3つ目のバリエーションでは、データベース層を含む4つの標準的なレイヤーすべてが1つのデプロイメントユニットに統合されている。このバリエーションは、内部的に組み込まれたデータベースやインメモリデータベースを持つモバイルアプリケーションなど、小規模なアプリケーションにうってつけだ。多くのオンプレミス製品は、この3つ目のバリエーションで構築されて、顧客へと提供されている。 ...

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

ソフトウェアアーキテクチャの基礎 ―エンジニアリングに基づく体系的アプローチ

ソフトウェアアーキテクチャの基礎 ―エンジニアリングに基づく体系的アプローチ

Mark Richards, Neal Ford, 島田 浩二
生成AI時代の価値のつくりかた ―実践者のマインド、スキル、データ、ユースケース

生成AI時代の価値のつくりかた ―実践者のマインド、スキル、データ、ユースケース

Rob Thomas, Paul Zikopoulos, Kate Soule, 本多 真二郎, オライリー・ジャパン編集部

Publisher Resources

ISBN: 9784814401550Publisher Website