Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Building Microservices with .NET Core

You're reading from  Building Microservices with .NET Core

Product type Book
Published in Jun 2017
Publisher Packt
ISBN-13 9781785887833
Pages 274 pages
Edition 1st Edition
Languages
Authors (3):
Gaurav Aroraa Gaurav Aroraa
Profile icon Gaurav Aroraa
Lalit Kale Lalit Kale
Profile icon Lalit Kale
Manish Kanwar Manish Kanwar
Profile icon Manish Kanwar
View More author details

Table of Contents (10) Chapters

1. What Are Microservices? 2. Building Microservices 3. Integration Techniques 4. Testing Strategies 5. Deployment 6. Security 7. Monitoring 8. Scaling 9. Reactive Microservices 10. Creating a Complete Microservice Solution

Logging


Logging is a type of instrumentation made available by the system, its various components, or the infrastructure layer. In this section, we will first visit logging challenges and then discuss strategies to reach a solution for these challenges. 

Logging challenges

We will first try to understand the problem with log management in microservices:

  • To log the information related to a system event and parameter as well as the infrastructure state, we will need to persist log files. In traditional .NET monoliths, log files are kept on the same machine where the application is deployed. In the case of microservices, they are hosted either on virtual machines or containers. But virtual machines and containers are both ephemeral, which means they do not persist states. In this situation, if we persist log files with virtual machines or containers, we will lose them. This is one of the challenges of log management in microservices.
  • In the microservice architecture, there are a number of services...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}