Quite hard to point out what could be generating this CPU usage with more information about the application. Other possible questions:

  • How many indexes do you have on your biggest and/or most used collection?
  • Do you have documents with fields of type array with many items (more than 100) and this field is also indexed?

Regarding the microservice, the issue is that every time it executes, it’ll need to create an authenticated connection to the DB, the process of authenticating is CPU intensive, so, if you have a microservice that executes thousands of times a second, thousands of authentication would be happening, using a ton of CPU.