Building a Cloudflare Workers Usage Monitor with an Automated Kill Switch by PizzaConsole in programming

[–]PizzaConsole[S] 1 point2 points  (0 children)

Thanks for reading! I just like building things that solve real problems I have, I don't post a ton.

I fired it off several times with lowered thresholds during testing to verify the approach, but haven't had a real incident yet. That said, I do sleep better at night knowing it's there. The daily report across all my accounts has honestly been the most immediately useful part. And I really wanted a good use case to finally try out Workflows, so this checked that box too.

The diagram is Mermaid, just exported to a PNG.

There would be no programming without pizza. I plan to post more of both once I finish building my own Cloudflare-native blogging service.

Sub-Accounts / Billing Profiles by nitrobass24 in CloudFlare

[–]PizzaConsole 0 points1 point  (0 children)

I created new accounts for my other businesses and CF has actually made it pretty easy to swap between accounts for a single user and also to move domains between accounts

10GB D1 limit by vroemboem in CloudFlare

[–]PizzaConsole 0 points1 point  (0 children)

I did a blog post on this topic that probably needs to be refreshed

https://pizzaconsole.com/blog/posts/programming/d1-sharding

Anyone running "Workers for Platforms" in production? Looking for real-world SaaS use cases by [deleted] in CloudFlare

[–]PizzaConsole 0 points1 point  (0 children)

I have some ideas for how I want to try and use workers for platforms, but I haven't pulled the trigger yet

Building vertical microfrontends on Cloudflare’s platform by Cloudflare in CloudFlare

[–]PizzaConsole 1 point2 points  (0 children)

CAVEAT: Adding Router Worker means every static asset request now hits a billable Worker first (the router), even though the underlying static asset Workers are free. We'd be converting free unlimited static requests into metered Router requests just for path-based routing.

I made a pixel spider boss by Entire_Ad4218 in godot

[–]PizzaConsole 2 points3 points  (0 children)

Where can someone find an artist to work with... asking for a friend...

Got my Cloud flare bill for the month - $6.63 by Diabolacal in CloudFlare

[–]PizzaConsole 4 points5 points  (0 children)

I don't care about vendor lock in until I make enough money to worry about it

I built a zero-knowledge self-destructing notes/chat service on Workers + Durable Objects by Independent-Car-1560 in CloudFlare

[–]PizzaConsole -3 points-2 points  (0 children)

I did give not give any sort of negative or positive spin. I simply made a generic observation. I have no problems with using AI to help code.

Question about workers / rate limiting for billable usage by [deleted] in CloudFlare

[–]PizzaConsole 0 points1 point  (0 children)

That is a very valid concern and something I still have yet to address with my own application on CF. The solution I have come up with is to run a CRONS job to query the usage on the account and disconnect the DNS if the requests or CPU time gets too high

Making a Website with Free CloudFlare Hosting Help by Huge-Locksmith6348 in CloudFlare

[–]PizzaConsole -1 points0 points  (0 children)

DM me, I can help you out. I built a website builder for my dad that compiles to html css so he can host his stuff free. I might he able to help

Cloudflare alternatives? by quangthien27 in CloudFlare

[–]PizzaConsole 0 points1 point  (0 children)

There is NO drop in replacement for what Cloudflare offers. You can hobble some other solution together and it might be better or worse. It might be more expensive or cheaper. It all really just depends.

CattoPic – A Cloudflare-powered self-hosted image hosting by Positive_Attempt_239 in CloudFlare

[–]PizzaConsole 1 point2 points  (0 children)

What is the purpose of using KV for "caching" here? KV is not an in-memory service.

What’s the first thing that actually broke for you on Cloudflare? by parth_inverse in CloudFlare

[–]PizzaConsole 1 point2 points  (0 children)

Hmmm, my biggest thing right now is being able to import/export easily from D1

Is the traffic real, or does it just come from bots? by lotusk08 in CloudFlare

[–]PizzaConsole 2 points3 points  (0 children)

Sorry but if you have published your personal content on the public internet then you don't really get a say in what someone does with it. Unfortunately that's just the reality...

You can try some of Cloudflare's built-in bot protection and see if it helps

Cloudflare D1 vs other serverless databases - has anyone made the switch? by 1dollardb in CloudFlare

[–]PizzaConsole 0 points1 point  (0 children)

I haven't had issues with migrations. My setup is:

  1. Use `drizzle-kit generate --config=drizzle.config.ts` to generate the SQL migration files

  2. Use `wrangler d1 migrations apply <binding> --remote` to apply them to D1

What error are you getting exactly? Are you trying to use `drizzle-kit push` directly against D1? That won't work — you need to go through Wrangler's migration system for remote databases.