#Worried about cold start

11 messages · Page 1 of 1 (latest)

patent token
#

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.
patent token
frail locust
#

Did you try on #deploy™ ?

patent token
patent token
#

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.

minor summit
#

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).

exotic vector
#

Kv as server-side local-first

patent token
patent token
#

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!