Hitting request timeout on Vercel but function is expected to be slow
I have a service running on GCP that does some really slow web crawling stuff and I keep hitting the request timeout in Vercel. The request could take potentially up to 30min. What are some patterns/tools here that I can explore?
4 Replies
Vercel functions have a low timeout
Up to: 60s (free), 300s (pro), 900s (enterprise)
Most likely you can’t run on vercel and wait for the timeout
I think I may use QStash by Upstash, any opinions on that?
Nah
Self hosting
Trigger.dev | The open source background jobs framework
Create long-running jobs directly in your codebase with features like API integrations, webhooks, scheduling and delays.