Considerable matters when we write API

1. Scalability of the architecture and distributed systems

-response time ,user base,load balancer,master slave Databse

2.Multiple platform ,WEB and Mobile

3.Same account can be used with different devices

-data sync if  only any updates on the respective account

4.Avoid unwanted requests to the DB

-Maintaining version number to verify any new updates

5.Well performance using latest technologies such as caching systems

-Redis cache

-response time ,user base