patrickalima98
Explore posts from serversDTDrizzle Team
•Created by patrickalima98 on 2/19/2024 in #help
Reduce drizzle dist folder for serverless (Deno deploy)
Hi, I'm using Drizzle on Deno Deploy and it's working great in terms of library!
But the size of the
drizzle-orm
dist is about 5.3 MB, which is too big and bad for cold boot in deno deploy!
In my case, I have a project where I'm experiencing 2-4 second cold starts because the biggest dependency I have is now drizze-orm. Without it, I have 200 - 400ms cold start.
My current dependencies are:
- drizzle-orm: 5.3 MB
- ramda: 870Kb
In the case of drizze, I noticed that the largest folders are: pg-core
1MB and mysql-core
1.2MB. I'm not using sqlite, expo, aws, mysql, best-sqlt etc... I would like to know if there is an option to externalize these folders as external dependencies or if I can ignore these folders in the download to have a smaller node_modules size?1 replies
CDCloudflare Developers
•Created by patrickalima98 on 11/4/2023 in #workers-help
Slow cold start and latency for hello world code
Hi, I have a simple worker, deployed recently. The content is a simple hello world provided by the Cloudflare dashboard, the code is the below:
The worker code was deployed direct by the Cloudflare Dashboard UI, but after this, I see a request time of 180 - 380ms, It's normal? How can I fix it?
Some details:
Worker URL: https://worker-spring-wildflower-8be3.nuinalp-ltda.workers.dev
Plan: Paid (New standard price)
CF-Ray Response: 820d6602edec2206-MIA
My region: South America (Sao Paulo)
Average response time: 130ms - 380ms
6 replies