Hacker News new | ask | show | jobs
by bosch_mind 1119 days ago
Cloudflare R2 has free egress, cheap storage
3 comments

And they just added TCP client sockets in Workers. We are just one step step away from being able to serve literally anything on their amazing platform (listener sockets).
Does this mean you can self host ngrok?
Only client sockets are available. So what you can do is build a worker that receives HTTP requests and then uses TCP sockets to fetch data from wherever, returning it over HTTP somehow.
oh darn. You can't receive tcp connections. lame.
Cloudflare has free bandwidth up to a point and then they will charge you. That’s not really that surprising though.
PSA: The informal point at which they'll reach out used to be about 300TB/month about 2 years ago.
It may depend on the makeup of data or something. They "requested" one of my prior projects go on the enterprise plan after about 50TB, granted the overwhelming majority of transfer was for distributing binary executables so I was in pretty blatant violation of their policy. This was 2015ish, so the limit could also have gone up over time as bandwidth gets cheaper too.
Thanks, I’ve heard about this, but never actually with numbers. It’s good to know.
I think that's the case with their free CDN/DNS/proxy offering, not R2.
R2 egress is free. You pay per request and per gb-month.
Looks like it would be $150/month for OP's needs?