Skip to Content
サイトリライアビリティワークブック ―SREの実践方法
book

サイトリライアビリティワークブック ―SREの実践方法

by Betsy Beyer, Niall Richard Murphy, David K. Rensin, Kent Kawahara, Stephen Thorne, 澤田 武男, 関根 達夫, 細川 一茂, 矢吹 大輔, 玉川 竜司
June 2020
Intermediate to advanced
516 pages
7h 4m
Japanese
O'Reilly Japan, Inc.
Content preview from サイトリライアビリティワークブック ―SREの実践方法

7章単純さ

執筆:John Lunney、Robert van Gent、Scott Ritchie

協力:Diane Bates、Niall Richard Murphy

うまく動作する複雑なシステムはいずれも、うまく動作するシンプルなシステムから進化したものなのである。

――Gallの法則(http://bit.ly/2syRTi5

単純さはSREの重要な目標であり、またそれは信頼性と強い相関があります。単純なソフトウェアは壊れにくく、壊れたとしても容易に素早く修復できます。単純なシステムは理解しやすく、メンテナンスしやすく、テストしやすいものです。

SREにとって、単純さはあらゆる場面で目指すべき目標です。それはコードそのものからシステムのアーキテクチャ、そしてソフトウェアのライフサイクルを管理するために使われるツールやプロセスにまで及びます。本章ではいくつかの例を取りあげ、単純さをSREがどのように計測し、考え、推奨するかを示します。

7.1 複雑さの計測

ソフトウェアシステムの複雑さの計測は、純粋な科学ではありません。ソフトウェアのコードの複雑さを計測する方法は数多く存在し、その多くはきわめて客観的なものです†1。おそらく最もよく知られており最も広く利用可能な標準は循環的複雑度(cyclomatic complexity number = CCN、https://bit.ly/2To607j)であり、これは特定のステートメント群の中の異なるコードパスの数を計測するものです。たとえばあるコードブロックがループや条件分岐を持たないのであれば、その循環的複雑度は1です。実際のところ、ソフトウェアのコミュニティはコードの複雑さの計測をとてもうまくこなしており、多くの統合開発環境(Visual ...

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

進化的アーキテクチャ ―絶え間ない変化を支える

進化的アーキテクチャ ―絶え間ない変化を支える

Neal Ford, Rebecca Parsons, Patrick Kua, 島田 浩二
プログラミングRust

プログラミングRust

Jim Blandy, Jason Orendorff, 中田 秀基

Publisher Resources

ISBN: 9784873119137Other