News for hackers. Stuff that matters.
Re:My £4 a month server can handle 4.2M requests a day by stef25 on Wednesday September 08, 2021 @01:35AM (#28453437)
And here I am building a simple API using Lumen (Laravel's stripped down, hopefully faster cousin) getting response times that are just abysmal.

The raw queries themselves are fast enough, but for some reason running them in a framework, transforming them in to a Resource and dumping it as json takes so long that I'm scared to find out what this super popular framework is even doing under the hood.

Once I learn enough Python I'd like to compare its performance to something like FastAPI. But even that probably won't come near what these recent posts are describing.

(Disclaimer - it's just a side project and I haven't really looked in to making it faster)

Re:My £4 a month server can handle 4.2M requests a day by Kiro on Wednesday September 08, 2021 @01:40AM (#28453464)
That's strange. Laravel should be able to handle thousands of requests a second even on the cheapest hardware.
Re:My £4 a month server can handle 4.2M requests a day by euoia on Wednesday September 08, 2021 @01:46AM (#28453494)
In my experience with Laravel, it is often the transformation to JSON that takes some time for large responses.