denv
Explore posts from serversTTCTheo's Typesafe Cult
•Created by denv on 12/20/2023 in #questions
Do server actions have a fixed lifetime?
Did some more research:
My Use Case:
I'm working on analytics dashboard and I'm pulling in data from cube cloud to populate graphs and other data visualizations.
The Problem:
Some Cubejs queries take a while to be resolved in my case I had a cube query taking more than 20 seconds. There's nothing much I can do about the time it takes to pull in the data.
Reference:
According to the vercel's docs, serverless functions need to start sending down data within 25 seconds, failure to do so results in a timeout.
https://vercel.com/guides/what-can-i-do-about-vercel-serverless-functions-timing-out
My Solution:
Since I had no control over how long cubejs took to resolve a query and send down the data, I decided to host my next app outside vercel. That way my serverless functions weren't timedout.
5 replies