I am new in API development, and I just started making a POC of my Project as per my project requirements
1. I will receive a request from User based on that Request.
2. I have to request several other providers using API provided by them (at least 8 to 10) for every request I will get from user.
3. Get some information from My Database.
4. Convert all response of other server and information I fetch from My DB into JSON and return it to User who requested it.
I wrote this code in core PHP but performance is not up to the mark it is taking around 2.5 seconds in responding back to user which is really slow. Which language will be better to create such API should I chose any other langue or stick with PHP only but using specific framework and practices I should follow which can help me improving performance of my API?