100k requests - what does it mean?

Hey guys, can you please tell me what this means? 100k requests for what exactly, visitors? I only have one static website... What happens if the 100k is reached, I dont even know how I got the 9k till now
No description
20 Replies
Hard@Work
Hard@Work4d ago
I curl your Worker: curl https://worker_name.konstandin.workers.dev, that's one request. This is also affected by bots visiting your Worker
Konstandin
KonstandinOP4d ago
Okay wait what is a worker XD
Hard@Work
Hard@Work4d ago
Cloudflare Docs
Cloudflare Workers · Cloudflare Workers docs
Cloudflare Workers provides a serverless execution environment that allows you to create new applications or augment existing ones without configuring or maintaining infrastructure.
Konstandin
KonstandinOP4d ago
Okay, if I understand it correctly it takes up some loading on the server instead of the client? Sorry man, I am a beginner
Hard@Work
Hard@Work4d ago
Yeah, basically it just runs some code in Cloudflare's datacenters It's a bit more complex than this, but that's a small gist
Konstandin
KonstandinOP4d ago
But the site will work normally if it hits 100k yes? Just the client has more work to do no?
Hard@Work
Hard@Work4d ago
It depends on how the app is built. Some will handle it gracefully, but others may break entirely
Konstandin
KonstandinOP4d ago
As I said, I just have a simple portfolio, no fancy stuff, some framer motion, but that all is "use client" Does building a page on CF take up these credits too?
Hard@Work
Hard@Work4d ago
Assuming that it is fully static, you shouldn't be consuming any requests. Do you have a repo for your project?
Konstandin
KonstandinOP4d ago
I'm sorry, I can't share it. My guess is that probably building the websites after I commit take up the requests, is this possible? Or DNS stuff? Google Fonts import urls, image urls or NextJS image optimization wouldn't use up workers/functions, correct?
Hard@Work
Hard@Work4d ago
Oh, if it is NextJS then yes, it burns through requests pretty fast, unless you do a full static build Building doesn't consume any requests It's just request made by the browser
Konstandin
KonstandinOP4d ago
So what can I do then? I cant switch NextJS xd
Hard@Work
Hard@Work4d ago
If you can use a static build, I would probably do that
Konstandin
KonstandinOP4d ago
okay, need to learn what that is
Hard@Work
Hard@Work4d ago
Otherwise, you can use Workers Paid, which removes the limit
Konstandin
KonstandinOP4d ago
Yeah I saw that I will try to have a static build first though I did select the Framework preset as NextJS instead NextJS (Static HTML Export), can this be the issue? If yes, if I redeploy the site with the correct preset, do I have to make changes to the code too?
Hard@Work
Hard@Work4d ago
Changing the preset shouldn't make a difference, your project needs to be configured to build as a static project first
Konstandin
KonstandinOP4d ago
>.<
Hard@Work
Hard@Work4d ago
If you use API Routes in your project, you can't go static, for example
Konstandin
KonstandinOP4d ago
I dont have any APIs whatsoever Can I DM you a link ? Ok nevermind, I think I got it static now. I will see if the rates increase further It seems like they have not increased further (+1 request instead of hundreds) Will watch it tomorrow again, Thank you so much for your help!!!

Did you find this page helpful?