top | item 46762581

(no title)

kStadler01 | 1 month ago

I really like the offering that Cloudflare has with workers, but for me they just seem to be lacking some DX tooling/solutions. Debugging is hell, but for quick projects like this I'll definitely look into it again. These days Railway is my go-to for hosting "throw-away" projects.

Always wondering how its going for folks that are using Cloudflare Workers as their main infra?

discuss

order

csomar|1 month ago

I'm building my entire back-end on CF Workers. The DX was really frustrating starting out, but I'm using Rust/WASM, which means most of my issues get caught at compile time. My suggestion: avoid all the CF offerings (DB, Pages, KV, etc.) and stick with just Workers. They're pretty stable and reliable (more so than Cloudflare itself, hehe), and once you figure out their rough edges, you'll be fine.

locknitpicker|1 month ago

> I'm building my entire back-end on CF Workers. The DX was really frustrating starting out, but I'm using Rust/WASM, which means most of my issues get caught at compile time.

Cloudflare Workers support WASM, which is how they support any runtime beyond JavaScript. Cloudflare Worker's support for WASM is subpar, which is reflected even in things like the Terraform provider. Support for service bindings such as KV does not depend on WASM or anything like that: you specify your Wrangler config and you're done. I wonder what you are doing to end up making a series of suboptimal decisions.

huijzer|1 month ago

What DB do you use? I tried the same for while but eventually gave up because it was incredibly restrictive and not much cheaper than a self managed VPS with some Docker containers. I mean the biggest thing that could happen to me is landing on the HN front page and a $5 per month VPS can manage that easily

NamlchakKhandro|1 month ago

> Debugging is hell

Most people won't care because the extent of their debugging skills is console.log, echo, print. repeat 5000 times.

grey-area|1 month ago

You missed out the important bit - think about the problem and data flow first.

After that it doesn’t matter much which tool you use to verify assumptions.

locknitpicker|1 month ago

> Most people won't care because the extent of their debugging skills is console.log, echo, print. repeat 5000 times.

I don't agree. The first thing any developer does when starting out a project is setting up their development environment, which includes being able to debug locally. Stdout is the absolute last option on the table, used when all else fails.

locknitpicker|1 month ago

> I really like the offering that Cloudflare has with workers, but for me they just seem to be lacking some DX tooling/solutions.

Cloudflare in general is a DX mess. Sometimes it's dashboard doesn't even work at all, and is peppered with error messages. Workers + Wrangler + it's tooling doesn't even manage to put together a usable or coherent change log, which makes it very hard to even track how and why their versioning scheme should be managed.

Cloudflare is a poster child of why product managers matter. They should study AWS.

koakuma-chan|1 month ago

Yeah one time I tried do to something and the button didn't do anything, only after I opened DevTools I saw the error message in the response body.