https://discord.cloudflare.com logo
Join Discord
Powered by
# workers-discussions
  • k

    kian

    04/27/2023, 4:10 PM
    if there was enough requests going over then it'd be throwing errors but overall it's very generous to spiky workloads
  • w

    wesbos

    04/27/2023, 4:13 PM
    Ohhh gotcha
  • t

    Tom Sherman

    04/27/2023, 4:31 PM
    oh apparently deno deploy doesn't support npm imports 😭
  • w

    wesbos

    04/27/2023, 4:36 PM
    Yeh their Deploy VS Local story is a bit goofy - import maps are different for deploy and local
  • w

    wesbos

    04/27/2023, 4:36 PM
    doesnt make sense
  • b

    boywithkeyboard

    04/27/2023, 4:42 PM
    there are not much benefits to choose deploy over workers xd
  • b

    boywithkeyboard

    04/27/2023, 4:43 PM
    the only reason would be tcp connections for databases, but that's already it
  • z

    zszszsz

    04/27/2023, 6:19 PM
    Do we now have any workaround when wrangler is doing "[WARNING] Failed to get worker definitions TypeError: fetch failed"
  • z

    zszszsz

    04/27/2023, 6:21 PM
    For the platform itself (and ignore the deno part), is deno deploy better or worse than cf ?
  • j

    James

    04/27/2023, 6:46 PM
    Seems to be a common-ish thing, but I'm not sure a root cause or anything has been found yet https://github.com/cloudflare/workers-sdk/issues/2959
  • j

    James

    04/27/2023, 6:47 PM
    You're in a CF server so you're probably gonna get some biased answers to that question, haha. Both are great, and honestly you can't go wrong with either.
  • u

    Unsmart | Tech debt

    04/27/2023, 6:55 PM
    Deno's BroadcastChannel is pretty much the only thing that I would consider better than stuff CF has to offer everything else is almost like the same. Deno is a bit behind on some stuff like cache api and their kv isnt released yet (though also has a better api than workers kv tbh, but DO makes up for this on workers).
  • z

    zszszsz

    04/27/2023, 7:12 PM
    CF guys are usually pretty nice and open from what I know 😉
  • w

    Wichard

    04/27/2023, 8:10 PM
    can I use crates from crates.io in workers-rs?
  • k

    kian

    04/27/2023, 8:12 PM
    If they support the
    wasm32-unknown-unknown
    target, yes
  • t

    Tom Sherman

    04/27/2023, 8:28 PM
    The Deno part is the main differentiator for me, it's why I would choose it over workers The idea that the code I run on my machine is exactly the same when deployed is super nice
  • t

    Tom Sherman

    04/27/2023, 8:28 PM
    No bundling etc.
  • k

    kian

    04/27/2023, 8:31 PM
    I heard you like bundling so we added bundling into your bundling
  • t

    Tom Sherman

    04/27/2023, 8:34 PM
    The true friends are the bundles we make along the way
  • z

    zszszsz

    04/27/2023, 8:34 PM
    Oh who would like bundling
  • s

    Skye

    04/27/2023, 8:35 PM
    Wrangler --no-bundle has had some very nice changes as of late just FYI 👀
  • h

    HardAtWork

    04/27/2023, 8:37 PM
    But can Workers run my TS straight yet? /s
  • h

    HardAtWork

    04/27/2023, 8:38 PM
    A little bit slow on this one, but my two cents: Deno for DevEx & API support, CF for performance and global reach
  • h

    HardAtWork

    04/27/2023, 8:38 PM
    Why not both?
  • s

    Skye

    04/27/2023, 8:40 PM
    regretfully not
  • h

    HardAtWork

    04/27/2023, 8:41 PM
    Do any runtimes have native runtime type checking?
  • h

    HardAtWork

    04/27/2023, 8:41 PM
    As in, instead of Zod, if you try to JSON parse a request body that doesn’t match a type, it throws an error
  • s

    Skye

    04/27/2023, 8:41 PM
    Deno has TS in it, doesn't it? 🤔
  • s

    Skye

    04/27/2023, 8:42 PM
    Oh, like that, I don't think so
  • s

    Skye

    04/27/2023, 8:42 PM
    Thats more of a strictly typed language thing
1...242324242425...2509Latest