I was earlier part of another team, where all the monolithic apps and microservices are restarted in Production environment every weekend as part of scheduled maintenance.
In my current team, there's no automatic restarts. There are some microservices that haven't been restarted since 2+ years. Isn't this a potential problem? Won't "not restarting services" lead to increased memory consumption at some stage? Don't microservices need frequent restarts as part of maintenance?
On asking the TL, they mentioned that the microservice shouldn't be written in a way that it causes increased memory consumption.
But that's not what we can always control right? Hence we have maintenance windows.