Recommended timeout for fluid compute

Hi, I’m currently using a remix app and is hosted on vercel.

Most of my API response time are under 400 ms unless there is a huge spike in traffic a new then it slows down as new function instances and new mongodb connections are needed.

Initially i used 60s but that increased the billing usage significantly when there was a spike of requests and large number of timeouts

I changed to 5s timeout for my functions and saw multiple timeout errors, after changing back to 10s most of errors are resolved.

I just enabled fluid as I think it’s ideal for my use-case (correct me if I’m wrong) and now the timeout is 60s by default .

Would you recommend keeping it to 60s or 10s?

Hi @nil-team, thanks for reaching out in the community.

I’d say stick to the Fluid defaults for now and notice your billing/usage over time. Fluid with 60s timeout should definitely keep better reliability and low costs.

If you see costs rising, we can dig into why and how we can optimize.

Thanks, I will do that.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.