Hello,
I am using http post method the retrieve data from my server every second in my app. ( to get updated currency rates).
To add a protection to my api, I am switching to basic auth where I will protect the folder on my server and use basic auth with httputils2 to access the file. my question is, is there a problem with this technically like : I am sending post request every second to get the updated rates, I didnt have any problem with this without using auth, if i switch to basic auth, maybe it will be slower to get the data with username and password, or some requests will fail because of this check ? Is there any downside of this method while sending a request every second ?
the reason I am asking is : I track the response time with every request, without auth it was around 50ms but after auth it is arounf 150ms , on peak times when the currency moves are high, I am handling around 5000 concurrent connections on my server so if the basic auth somehow will increase the load it may crash my servers.
Thanks
I am using http post method the retrieve data from my server every second in my app. ( to get updated currency rates).
To add a protection to my api, I am switching to basic auth where I will protect the folder on my server and use basic auth with httputils2 to access the file. my question is, is there a problem with this technically like : I am sending post request every second to get the updated rates, I didnt have any problem with this without using auth, if i switch to basic auth, maybe it will be slower to get the data with username and password, or some requests will fail because of this check ? Is there any downside of this method while sending a request every second ?
the reason I am asking is : I track the response time with every request, without auth it was around 50ms but after auth it is arounf 150ms , on peak times when the currency moves are high, I am handling around 5000 concurrent connections on my server so if the basic auth somehow will increase the load it may crash my servers.
Thanks
Last edited: