# \[SOLVED\] Hitting api of a very busy website

**URL:** <https://onehack.st/t/solved-hitting-api-of-a-very-busy-website/60320>\
**Category:** Discussion & Solutions\
**Tags:** solved\
**Created:** [October 14, 2019, 6:02pm UTC](https://onehack.st/t/solved-hitting-api-of-a-very-busy-website/60320 "2019-10-14T18:02:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bikash\_Gurung](https://onehack.st/user_avatar/onehack.st/bikash_gurung/32/18359_2.png) [@Bikash\_Gurung](https://onehack.st/u/Bikash_Gurung)\
**Post date:** [October 14, 2019, 6:02pm UTC](https://onehack.st/t/solved-hitting-api-of-a-very-busy-website/60320/1 "2019-10-14T18:02:53Z")

</div>

Hello friends! Is there any effect in the response time of an api in a very high traffic websites?

---

<div class="post-metadata">

**Author:** ![TheJoker](https://onehack.st/user_avatar/onehack.st/thejoker/32/22660_2.png) [@TheJoker](https://onehack.st/u/TheJoker)\
**Post date:** [October 14, 2019, 6:35pm UTC](https://onehack.st/t/solved-hitting-api-of-a-very-busy-website/60320/2 "2019-10-14T18:35:06Z")

</div>

The bigger websites do the right scaling infrastructure to meet the demands of their website traffic, no matter what the spike might be, so imo, the response time may vary with the every specific country and browsers, but the difference wouldn’t be much noticeable to change your api plans with the website..

Websites with higher traffic have their ways to scale out their website traffic easily, below are the some of the points, how they scale out!

- Load Balancing
- High-level caching
- Bigger and faster servers with more resources (CPU, Memory)
- Faster Disks (SSDs)
- Scalable databases
- Bandwidth/Network upgrades

There are niche tools that you can set up to continuously **monitor** API endpoints for uptime, availability, response time, performance, and other variables. Many of these environments are code-less and provide automatic **alerting** when an API fails (or when another threshold is reached).

---

<div class="post-metadata">

**Author:** ![Bikash\_Gurung](https://onehack.st/user_avatar/onehack.st/bikash_gurung/32/18359_2.png) [@Bikash\_Gurung](https://onehack.st/u/Bikash_Gurung)\
**Post date:** [October 15, 2019, 3:05pm UTC](https://onehack.st/t/solved-hitting-api-of-a-very-busy-website/60320/3 "2019-10-15T15:05:32Z")

</div>

I wanted to make sure that when we hit an api, it continuously waits until it gets response or it maynot get response from the api because of high traffic.. So that it would be better to code the http request inside the while(response-isnot-returned) { hit the api again } or without while loop.. @TheJoker
