vassbence
vassbence
CDCloudflare Developers
Created by vassbence on 8/4/2023 in #pages-help
Testing functions with unstable_dev
Is it possible to test functions with unstable_dev ? Is it only possible with using a _worker file or can i somehow build the separate functions into one locally to run unstable_dev on?
1 replies
CDCloudflare Developers
Created by vassbence on 7/21/2023 in #workers-help
CRON local testing
When I have a cron trigger set up and run wrangler dev I get a warning: Miniflare 3 does not support CRON triggers yet, ignoring... What are my options to test the scheduled functions locally? miniflare 2?
1 replies
CDCloudflare Developers
Created by vassbence on 7/19/2023 in #workers-help
Structured logging
What are the best practices for doing structured logging for Workers? https://developers.cloudflare.com/workers/observability/logpush This article seems to be the only resource but it only talks about unstructured console.logs() What should I do? Integrate a third-party service / do my own little implementation of sending structured JSON logs to some storage?
8 replies
CDCloudflare Developers
Created by vassbence on 7/10/2023 in #workers-help
Smart placement
Hi! Does smart placement only make sense for single region databases? If I have multiple read replicas for my DB how would CF figure out where to place the worker?
35 replies
CDCloudflare Developers
Created by vassbence on 7/10/2023 in #general-help
Cloudflare architecture diagram resources
Hi! I'll built a presentation at work for an upcoming application and would love to create diagrams about the architecture. For that I would need some SVGs and icons of cloudflare solutions like Workers, R2, DO. Can I find these publicly available anywhere?
8 replies
CDCloudflare Developers
Created by vassbence on 7/6/2023 in #workers-help
Rate limit?
I'm running an atrilerry stress test on my deployed app and there seems to be a cap around 200req/sec. Is this like a default rate limit by CF?
7 replies
CDCloudflare Developers
Created by vassbence on 6/30/2023 in #workers-help
Workers public IP address
Is there a way to get an IP address which when one sends a request to it will be handled by a Cloudflare Worker? Like I add this IP as an A DNS record to a domain and so the requests get served by the Cloudflare worker?
15 replies
CDCloudflare Developers
Created by vassbence on 6/26/2023 in #workers-help
Specific location
Is there a way to invoke a Worker in a specific data center? Eg: for uptime monitoring from different locations around the world
5 replies
CDCloudflare Developers
Created by vassbence on 6/26/2023 in #workers-help
Is smart placement a good idea if only using CF services
I'm using KV, DO, D1, R2 for data in my workers backend JSON REST API and was wondering if using smart placement is a good idea in my case? KV should be global, DO is created per IP address so should get created on the edge close to the user too (used as rate limiter) D1 and R2 are sinlge regions, so maybe this is where smart placement would help?
2 replies
CDCloudflare Developers
Created by vassbence on 6/22/2023 in #pages-help
Testing workers created by @cloudflare/next-on-pages
Hi! Workers have a really nice API (unstable_dev()) which allows me to start them locally and run e2e tests on the worker. https://developers.cloudflare.com/workers/wrangler/api/ I was wondering if it's possible to create a Next.js application (using @cloudflare/next-on-pages) which internally generates a _worker.js file combined from all the backend functionalty and test that worker with the same API as I do for regular CF workers? Has anyone done this?
27 replies
CDCloudflare Developers
Created by vassbence on 6/21/2023 in #workers-help
External domains served by Worker
Hi! I've built a SaaS with Workers as the backend. Right now every user on my site gets a custom page like saas.com/username. I'd like to add a feature where users can add their own domains to the platform and have their site served on that domain. Let's say user owns mydomain.com. Is there a way to set DNS records on mydomain.com so that the domain points to the same Worker that is serving saas.com/username ?
19 replies