Designing a Memory Management Microservice

This microservice is an example of how you could write your own memory monitoring system for the health of your ecosystem.

In this chapter, we will do the following:

  • Start a timer that will trigger every 60 seconds
  • Garbage collect our memory and report the status when the timer fires

Of course, we all know there are tons of discussions as to whether the garbage collector of .NET should ever be used, but for the purposes of our example, this will work just fine. Feel free to use whatever tools and tricks you are most comfortable with.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset