meakr
meakr
CDCloudflare Developers
Created by mike on 9/8/2024 in #workers-help
pg example not working
Update on this one: It works now with pg and nodejs_compat if you're on the latest wrangler and the latest version of pg! There was some feature detection in the package that we needed to push an upstream patch to fix and then a crypto-related bug in unenv we also patched that was surfaced too. Thanks for the feedback on this one!
3 replies
CDCloudflare Developers
Created by mike on 9/8/2024 in #workers-help
pg example not working
Hey @mike, I'll dig in here in a bit. If you set node_compat = true in your wrangler.toml instead of compatability_flags = ["nodejs_compat_v2"] do you know if it works? It should work with V2 and node_compat = true is meant to be replaced, but it'd be helpful for debugging to see if it works in this case.
3 replies
CDCloudflare Developers
Created by meakr on 6/14/2024 in #workers-discussions
๐Ÿ‘‹๐Ÿป Hey all. I am a PM on the Workers
Use "experimental:nodejs_compat_v2" in compatibility_flags and remove any other node compat references in wrangler.toml Docs PR is up but not merged. This link has info for now: https://bib-unenv.cloudflare-docs-7ou.pages.dev/workers/runtime-apis/nodejs/ Want to DM me if that solves/doesnt solve the issue? - That way we can keep this thread a bit cleaner?
41 replies
CDCloudflare Developers
Created by meakr on 6/14/2024 in #workers-discussions
๐Ÿ‘‹๐Ÿป Hey all. I am a PM on the Workers
@Yassin unnug.com, that's one of my open questions. In an ideal world, we could just scale for you and you aren't even specifying a scaling strategy. It could "just work", but I'm not sure if 1) that's easily doable and 2) end-users actually want that. I've seen similar products allow you to target a CPU or memory usage %, or RSP or concurrent requests. That seems like a viable option too. - Do you have a specific strategy you would want?
41 replies
CDCloudflare Developers
Created by meakr on 6/14/2024 in #workers-discussions
๐Ÿ‘‹๐Ÿป Hey all. I am a PM on the Workers
Hey @Mozzy, I'm curious, what are you hitting with the node app that doesn't work on Workers. We just merged an intiial node_compat_v2 that closes some of the gaps - https://github.com/cloudflare/workerd/pull/2147 Note, you'll need to enable it with a couple flags for now**
41 replies
CDCloudflare Developers
Created by meakr on 6/14/2024 in #workers-discussions
๐Ÿ‘‹๐Ÿป Hey all. I am a PM on the Workers
We hear that a ton
41 replies
CDCloudflare Developers
Created by meakr on 6/14/2024 in #workers-discussions
๐Ÿ‘‹๐Ÿป Hey all. I am a PM on the Workers
Totally hear you on having a second cloud though!
41 replies
CDCloudflare Developers
Created by meakr on 6/14/2024 in #workers-discussions
๐Ÿ‘‹๐Ÿป Hey all. I am a PM on the Workers
@MissS yeah that would be an option. Workers are going to be inherently more efficient than full containers, so my hope is that the compat story gets a lot better there and for JS/Python the container wouldn't be needed (better for us cost-wise, better for you price-wise). But of course if its BYOImage, you could put whatever you want in there. BTW, I feel compelled to shill for node_compat_v2 which is in experimental mode now and should at least make our current compat story better. ๐Ÿคž๐Ÿป
41 replies
CDCloudflare Developers
Created by meakr on 6/14/2024 in #workers-discussions
๐Ÿ‘‹๐Ÿป Hey all. I am a PM on the Workers
Yeah, posting on a Friday afternoon probably didn't help either. I'll definitely bump this tomorrow (and probably a few more times) in a more public spot
41 replies
CDCloudflare Developers
Created by meakr on 6/14/2024 in #workers-discussions
๐Ÿ‘‹๐Ÿป Hey all. I am a PM on the Workers
noted! ๐Ÿ™‚
41 replies
CDCloudflare Developers
Created by meakr on 6/14/2024 in #workers-discussions
๐Ÿ‘‹๐Ÿป Hey all. I am a PM on the Workers
@peshakoo is the main issue w using FFMPEG now the bandwidth costs, or latency, or the pain to set up an external system, or something completely different? - This seems like a good canonical use case of why container workloads might be nice. - Part of the reason I'm asking, is I could see an FFMPEG container being spun up right next to a worker on the same machine, or I could see something like a transcoding service with long lived containers. Wondering if either would be viable.
41 replies
CDCloudflare Developers
Created by meakr on 6/14/2024 in #workers-discussions
๐Ÿ‘‹๐Ÿป Hey all. I am a PM on the Workers
@johtso re "what you mean by container based workloads" -> I purposely kept it a bit vague as I want to get as broad a sense as possible of what people would want. I'd say really it would be anything where you bring your own image and we run it on your behalf. That could mean short or long running, stateless/stateful, one-off containers or autoscaling groups, etc, etc. But probably the main consistent behavior is brining ones own image.
41 replies
CDCloudflare Developers
Created by meakr on 6/14/2024 in #workers-discussions
๐Ÿ‘‹๐Ÿป Hey all. I am a PM on the Workers
Starting the thread ๐Ÿงต
41 replies
CDCloudflare Developers
Created by Hello, Iโ€™m Allie! on 5/3/2024 in #functions
Looking at the linked tutorial, it
(โ˜๐Ÿป mostly noting for any future people with a similar issue)
9 replies
CDCloudflare Developers
Created by Hello, Iโ€™m Allie! on 5/3/2024 in #functions
Looking at the linked tutorial, it
I think this is what I was missing in my mental model https://nitro.unjs.io/deploy/providers/cloudflare Solid was using this under the hood (via app.config.ts) to generate _routes.js and _worker.js files, and that's where the routing magic was happening
9 replies
CDCloudflare Developers
Created by Hello, Iโ€™m Allie! on 5/3/2024 in #functions
Looking at the linked tutorial, it
Noted - thanks!
9 replies
CDCloudflare Developers
Created by Hello, Iโ€™m Allie! on 5/3/2024 in #functions
Looking at the linked tutorial, it
Yeah fwiw, I think I'll stick to the framework idioms, I was just wondering how the sausage is made ๐Ÿ™‚
9 replies
CDCloudflare Developers
Created by Hello, Iโ€™m Allie! on 5/3/2024 in #functions
Looking at the linked tutorial, it
Or it it just that my app responds at those endpoints at all and therefore it ignores any /function-defined routes by default? (but wouldn't a non-SSR frontend app still respond on those ๐Ÿค”)
9 replies
CDCloudflare Developers
Created by Hello, Iโ€™m Allie! on 5/3/2024 in #functions
Looking at the linked tutorial, it
Do you know what tells workerd (I think workerd?) that this is SSR and to ignore /functions?
9 replies