Skip to Content
持續交付|使用Java
book

持續交付|使用Java

by Daniel Bryant, Abraham Marín-Pérez
July 2019
Intermediate to advanced
480 pages
9h 35m
Chinese
GoTop Information, Inc.
Content preview from 持續交付|使用Java
觀察機制:監視、log 與追蹤 |
377
從第一天就設計與建構含有監視機制的
app
由於在既有的 app 裡面加入監視、log 和追蹤機制非常困難,你應該從第
一天就加入適當的框架來支援這些做法。如果你要建構微服務或無伺服器
功能之類的分散式 app,更是要這樣做,因為不僅 app 需要支援框架,
平台和基礎設施也是如此(例如,為系統層級的監視機制收集與提出數
據,或者實作聚合 logaggregated logging)工具)。
接下來,你將了解如何使用 Java app 來實作每種觀察機制,但你一定要記得預先設計和
實作觀察機制的好處。
數據
數據
是用數字來表示某些系統屬性在一段時間內的情況,例如 app 使用的最大執行緒
數量、當前可用的 heap 記憶體,或上一個小時之內登入的 app 用戶數量。數字很容易
儲存、處理和壓縮,因此,數據可讓你更長時間地保留資料,也更方便查詢,從而,可
以用來製作儀表板,以反映歷史趨勢。此外,數據可以讓你隨著時間逐步降低資料分辨
率,經過一段時間之後,你可以將資料聚集成每日或每週的頻率。
在這一節,你將了解各種數據類型以及每一種數據的使用案例。這一節也會介紹一些最
熱門的 Java 數據程式庫(Dropwizard MetricsSpring Boot Actuator Micrometer),
並且藉著使用這些程式庫的範例來展示各種數據。
Eclipse MicroProfile
本章不討論 Eclipse MicroProfile
https://micr
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

精實企業|高績效組織如何達成創新規模化

精實企業|高績效組織如何達成創新規模化

Jez Humble, Joanne Molesky, Barry O'Reilly
管理Kubernetes

管理Kubernetes

Brendan Burns, Craig Tracey
精通機器學習|使用Python

精通機器學習|使用Python

Sarah Guido, Andreas C. Mueller
数字化转型:企业破局的34 个锦囊

数字化转型:企业破局的34 个锦囊

Gary O’Brien, Xiao Guo, Mike Mason

Publisher Resources

ISBN: 9789865021740