php - Best Practice for Laravel Asynchronous Requests -


i have laravel application. application loading fine, when make 3-10 api per page in controller. now, start see latency when start making 200 api requests per page in controller.

since laravel mvc.

all code in controller need executed , finished, , send data/variables view. leading lot of latency.

i’m thinking perform apis call asynchronously, not sure 1 best move,

i did quick search, found :

any directions/suggestions on mean lot me, , others faced issue.

explore using queues this. offload calls queue, await response.

i recommend against 200 requests per page, seems excessive. perhaps start trying down before rearchitecting.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -