avem
avem3w ago

Worried about cold start

Hey, I am planning to move from DigitalOcean+Express to Hono+Deno+DenoDeploy, I have around 4k-6k requests per day (very predictable traffic). I am worried about cold start problem. Currently only my pricing page is on Deno Deploy (200 requests per day), and I see 1s delay or so, but I beleive it is because pricing page is not used that often. 1. Am I correct in my assumption that with more requests cold start is going to be less of an issue? 2. How fast is Deno Deploy accomodates for change in number of requests? My current understanding is that Deno Deploy spins up nodes in advance and predicts the traffic.
No description
8 Replies
avem
avemOP3d ago
Unfortunately I believe I have to move from Deno Deplay because of the cold starts. No support here, nor in this issue: https://github.com/denoland/deploy_feedback/issues/505
fro.profesional
Did you try on #deploy™ ?
avem
avemOP2d ago
moved back to DigitalOcean, but still keeping Deno itself, plan to try Deno Deploy again some time in future https://docs.deno.com/examples/digital_ocean_tutorial/
Deno
How to deploy Deno to Digital Ocean
In-depth documentation, guides, and reference materials for building secure, high-performance JavaScript and TypeScript applications with Deno
avem
avemOP2d ago
Initially I thought that Deno Deploy would be better for my small enterprise, but eventually it becomes a problem of reducing the size of my npm dependies which is just out of scope for my project for now (not a frontend developer). Also apart from having cold start problem it actually worsenes the UX, since my database is in US and having Deno spawning next to the user actually increases time it takes to get data from db, since I am doing multiple of such requests before get the response to the user. Most probably I am just a newbie and done something wrong, but meh.
autofires
autofires22h ago
Distance between DB server and Web Server is an issue for all Edge hosting approaches (not Deno deploy specifically). One solution is a colocated/replicated data store (e.g Deno KV).
Fifth-Normal-Form
Kv as server-side local-first
avem
avemOP17h ago
Yeah, totally agree, not saying that Deno to blame here, this is an issue of my app design Well, replicating data store seems like overkill for my app tbh, maybe on later stages Oh, okay, it is time for me to sleep, you meant moving my user data into KV store. Interesting, I will try it in future!
Fifth-Normal-Form
Kv as server-side local-first See : https://zero.rocicorp.dev/