- Spring 5.0 Microservices(Second Edition)
- Rajesh R V
- 168字
- 2021-07-02 19:44:58
Externalizing logs
A Twelve-Factor App never attempts to store or ship log files. In a cloud, it is better to avoid local I/Os or file systems. If the I/Os are not fast enough in a given infrastructure, they could create a bottleneck. The solution to this is to use a centralized logging framework. Splunk, greylog, Logstash, Logplex, Loggly are some examples of log shipping and analysis tools. The recommended approach is to ship logs to a central repository by tapping the logback appenders and write to one of the shipper's endpoints.
In a microservices ecosystem, this is very important, as we are breaking a system into a number of smaller services, which could result in decentralized logging. If they store logs in a local storage, it would be extremely difficult to correlate logs between services:

In development, microservice may direct the log stream to stdout, whereas, in production, these streams will be captured by the log shippers and sent to a central log service for storage and analysis.
- 高手是如何做產品設計的(全2冊)
- Linux核心技術從小白到大牛
- Learning Bayesian Models with R
- Learning Neo4j 3.x(Second Edition)
- Kinect for Windows SDK Programming Guide
- Mastering Linux Security and Hardening
- Odoo 10 Implementation Cookbook
- Python Interviews
- 從程序員角度學習數據庫技術(藍橋杯軟件大賽培訓教材-Java方向)
- Android編程權威指南(第4版)
- HTML5程序設計基礎教程
- LabVIEW數據采集(第2版)
- CISSP in 21 Days(Second Edition)
- MonoTouch應用開發實踐指南:使用C#和.NET開發iOS應用
- 中小企業網站建設與管理(靜態篇)