Indiver kumar
Indiver kumar

Reputation: 15

Design of Rest API that can handle million of request

Today i was asked in interview. How would i design a rest api that would handle millions of request. Do i need to do something special in designing a rest api. I thought if there would be something problems i would create threads. What could be the answer of this.

Upvotes: 0

Views: 4861

Answers (1)

Jeryl Cook
Jeryl Cook

Reputation: 1038

this answers should work as a response:

To handle 'millions of request' the system must be deployed on multiple web servers behind a load-balancer that would round robin between each.

if the system is hitting a datastore, a second level cache(ehcache, memcache,etc.) should be used to reduce load on the datastore.

Upvotes: 1

Related Questions