- 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.
- Learning Java Functional Programming
- 簡單高效LATEX
- Programming ArcGIS 10.1 with Python Cookbook
- RTC程序設計:實時音視頻權威指南
- Web Application Development with MEAN
- Linux環境編程:從應用到內核
- Hands-On Reinforcement Learning with Python
- 青少年學Python(第1冊)
- 區塊鏈技術與應用
- HTML5秘籍(第2版)
- QGIS Python Programming Cookbook(Second Edition)
- SQL Server 2008 R2數據庫技術及應用(第3版)
- C語言程序設計與應用(第2版)
- 計算語言學導論
- Continuous Delivery and DevOps:A Quickstart Guide Second Edition