-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce API response time for puppeteer service #35
Comments
@kartikayasijaa I'm interested to work on this issue. Kindly assign it to me. |
maybe try this |
did you test it? |
@Wahid7852 Would you like to work on this? |
@kartikayasijaa I think there is no solution exist for this problem. The only thing we can do is moving out of vercel or upgrading the plan. I am saying this because I already did a lot of research regarding this problem. |
@Abidsyed25 I don't think moving out of vercel is a good idea. We have to reduce the API response time anyhow. If we deploy it to some other platform like EC2, then surely it will work. |
To reduce the response time. We can use an async worker. That will work in this case. When there's a request, we will push it to a worker queue. On frontend, we could do short polling to check the status of request. If the status is completed, we will return the response. |
It looks like the service is taking longer to respond than what's allowed in the free tier of Vercel Functions, resulting in a
timeout
error. To address this, we'll need to make some changes to the architecture. If anyone is interested in this issue, please reach out to me so we can discuss the approach.The text was updated successfully, but these errors were encountered: