Reputation: 715
I was asked a question during an interview: How do you optimize a microservice which receives millions of requests? How do you optimize the latency/frequency of a service response which accessed multiple times?
My answer was: I would check the DB query which makes the response slow and then configure the cache.
Can anyone let me in what are the ways a service can be optimized other than these? if there is anything cloud side?
Upvotes: 0
Views: 531
Reputation: 4045
Here are my ideas on this question:
Upvotes: 1
Reputation: 752
It is a vast and complex questions which can have a lot of different (and very long) answers based on the context and the structure of your environment.
There are a lot of patterns and concepts which fit different scenario and architecture.
I would suggest you to start here: https://microservices.io/patterns/index.html
The guy behind the site (Chris Richardson) advocates microservices since a long time. You can find numerous talks of this guy on Youtube. It is a great way to start your journey in the microservice world.
And off course: https://martinfowler.com/articles/microservices.html
Upvotes: 2