staticcode's avatar

Slow request times (>80ms) local

Ha guys, I am currently developing an API for a website I am making. The problem I have now is when I look on the internet, I see large companies running Lumen with huge API's e.g. returning thousands of records and this all happens in around or less then 20ms.

When I do a simple request on my own Lumen I am developing, a simple "hello world" GET takes >80ms.

Can anyone please help me out and tell me how, and with what tools I can "monitor" or "track" the problem? I have no clue on how to or where to start searching as this is my first API that I am building.

I hope you guys can give me some tips :)

Best regards,

Angelo

0 likes
4 replies
Cronix's avatar

It could also be that these apis you're referring to are heavily using caching.

ejdelmonico's avatar

And, as @cronix mentioned, the caching could be edge caching which would further increase the request speed.

staticcode's avatar

I see, will definately give that "tool" a try, thank you so much guys :) Ill post the outcome here tomorrow (not at work atm) and let you know what I found out :)

Anyways, 80ms is that within terms of "normal" or is that a long time for a super simple request?

Thanks again!

Please or to participate in this conversation.