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.