spatie / ray

Debug with Ray to fix problems faster
https://myray.app
MIT License
564 stars 102 forks source link

If the Ray application isn't open there is a significant delay in the request/response time #729

Closed ryanmortier closed 1 year ago

ryanmortier commented 1 year ago

Describe the bug First, let me say that I'm not sure if there is anything that can be done on the code side to prevent this (maybe async?). I'm simply reporting this because it took me the better part of a day to troubleshoot the issue. There is obviously an easy fix for the user -- just open the Ray app or remove the ray() call.

Additionally, it took me so long to troubleshoot the issue because I wasn't actually using a ray() call but rather using a @dump() directive in my blade file.

The bug: if you're utilizing a ray() call in your application but the Ray application isn't started then there is a significant (2 second) delay waiting for a response.

Versions

To Reproduce Steps to reproduce the behavior:

  1. Close out of all Ray applications and background processes (or reboot computer).
  2. Initiate requests to your own application that are using a ray() call.
  3. Observe slow request.

Expected behavior Near instant responses.

Screenshots 🟥 Here is when the Ray application isn't started:

ray1


🟩 Here is when the Ray application is started.

ray2

spatie-bot commented 1 year ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.