You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've mostly made sure the SDK supports Laravel Octane and Laravel Vapor. Trust me there is a huge difference :) When running Octane on Vapor it's a bit different than running Octane without Vapor. In any case i used Laravel native functions to get things like headers, data and similar.
The last thing that i can't figure out is the load time. Because Laravel Octane keeps all the the requests in memory $_SERVER['REQUEST_TIME_FLOAT'] isn't actually reset upon each request. This means that the function we have for detecting the load time won't correctly work. One idea that @khalyomede had to use Redis and store a value each time a new request is made. We could use Octane RequestReceived event to do it. But I'm afraid of using that in case there are many requests being made.
In my opinion what should happen is we should have a variable inside the class let's stay $start_time and we should set that to microtime(true) each time a new requests comes in ONLY on Octane. Again using Octane listeners we can do that like the guys at Spatie: Laravel Ignition Example
But I'm not sure how to do it. Ideas?
Thank you
The text was updated successfully, but these errors were encountered:
Description
I've mostly made sure the SDK supports Laravel Octane and Laravel Vapor. Trust me there is a huge difference :) When running Octane on Vapor it's a bit different than running Octane without Vapor. In any case i used Laravel native functions to get things like headers, data and similar.
The last thing that i can't figure out is the load time. Because Laravel Octane keeps all the the requests in memory $_SERVER['REQUEST_TIME_FLOAT'] isn't actually reset upon each request. This means that the function we have for detecting the load time won't correctly work. One idea that @khalyomede had to use Redis and store a value each time a new request is made. We could use Octane RequestReceived event to do it. But I'm afraid of using that in case there are many requests being made.
In my opinion what should happen is we should have a variable inside the class let's stay $start_time and we should set that to microtime(true) each time a new requests comes in ONLY on Octane. Again using Octane listeners we can do that like the guys at Spatie: Laravel Ignition Example
But I'm not sure how to do it. Ideas?
Thank you
The text was updated successfully, but these errors were encountered: