4 ms·
Very interesting, and using all of the latest tech. I was literally dreaming about combining Remix + Cloudflare Workers + Golang the other day. The only problem
by dinvlad 4y ago
Very interesting, and using all of the latest tech. I was literally dreaming about combining Remix + Cloudflare Workers + Golang the other day. The only problem is Go would need to be compiled into WASM for that [0]. But this would provide one of the best experiences both in terms of development and performance/latency.
[0] https://community.cloudflare.com/t/support-golang-natively-for-cloudflare-workers/296695 https://community.cloudflare.com/t/support-golang-natively-f...
- mayama 4y agoLast time I checked, there was a limit of 1MB or so for deployment wasm in cloudfare workers. Is that limit raised? Go binaries easily run on tens of MB with the default http library.
- grose 4y agoAFAIK that is still the limit. You can try and use TinyGo to reduce binary size but it's an uphill battle: https://nicholas.cloud/blog/continuing-hijinks-with-cloudflare-workers/ https://nicholas.cloud/blog/continuing-hijinks-with-cloudfla...
- matthewmueller 4y agoIt seems like fly.io is the best option right now for edge-optimized Go apps. My dream would be that Bud becomes something that Cloudflare simply can't ignore :D Their reliance on V8 Isolates will make it difficult, but if they add Docker support at some point, then we're good. I don't see how Bud would work with WASM at the moment, but if someone gets it working, that would be a very pleasant surprise! I'm more focused on getting Bud working well for deployment targets like Fly.io, Heroku, Lambda, K8s, Fargate and EC2.