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

    dave

    02/15/2023, 1:36 AM
    I can't seem to get my service binding to work and it's driving me insane
  • d

    dave

    02/15/2023, 1:39 AM
    I'm always getting a 500 error
  • d

    dave

    02/15/2023, 1:51 AM
    got it working
  • d

    dave

    02/15/2023, 1:51 AM
    I had to publish it once
  • a

    aa

    02/15/2023, 2:33 AM
    Anyone know if there's a way to get the worker host name statically (not inside a fetch()) ? I want to do this to configure my logging with the source host, and some logging happens before first fetch.
  • k

    kian

    02/15/2023, 2:47 AM
    Nope
  • k

    kian

    02/15/2023, 2:48 AM
    You could use
    define
    to replace it at build-time with a value in your wrangler.toml
  • j

    Jack_metamark

    02/15/2023, 3:58 AM
    hello, I have a problem regarding facebook event deduplication, can you help me?
  • j

    James

    02/15/2023, 3:59 AM
    Please don’t post your question in multiple channels. I would suggest you read the server rules and have a little patience 🙂
  • j

    Jack_metamark

    02/15/2023, 3:59 AM
    ok
  • m

    m99coder

    02/15/2023, 12:47 PM
    Hi there 👋 I’m curious if Cloudflare Workers (backed by WASI) would be a good fit where users provide a part of the code (e.g. a WASM file or something which can be compiled to WASM) and a closed-source app would import this WASM file to execute it without sacrificing security. A similar example was published by Cloudflare themselves here: https://github.com/cloudflare/workers-wasi.
  • k

    kian

    02/15/2023, 12:48 PM
    Workers’ WebAssembly.Instantiate only supports modules that were bundled with it at build time rather than from user input (like a request or fetching with a subrequest)
  • k

    kian

    02/15/2023, 12:49 PM
    So you’d have to basically have a new Worker for each one - or a new deployment of an existing Worker
  • m

    m99coder

    02/15/2023, 12:53 PM
    I see. Thanks. Will think about it.
  • k

    kian

    02/15/2023, 12:55 PM
    It sounds very similar to what Shopify has done recently
  • k

    kian

    02/15/2023, 12:55 PM
    https://shopify.engineering/javascript-in-webassembly-for-shopify-functions
  • k

    kian

    02/15/2023, 12:56 PM
    It probably works well with #1012440514135593083 which is made for lots of user Workers - I.E you have lots of Workers with your own JS/TS that loads the user WASM bundled with that Worker
  • m

    m99coder

    02/15/2023, 12:57 PM
    workers-for-platforms
    ? Is that something special or do you refer to the channel here in Discord?
  • m

    m99coder

    02/15/2023, 12:58 PM
    I will read the Shopify article. Thanks for sharing 👍
  • k

    kian

    02/15/2023, 12:59 PM
    https://blog.cloudflare.com/workers-for-platforms/
  • k

    kian

    02/15/2023, 1:00 PM
    It’s basically to let your end users leverage Workers - but of course, you can have your own Worker boilerplate and users only provide the WASM
  • m

    m99coder

    02/15/2023, 1:02 PM
    Nice. I will have a read.
  • m

    m99coder

    02/15/2023, 1:18 PM
    Is the “Workers for Platforms” feature already usable?
  • k

    kian

    02/15/2023, 1:22 PM
    It's GA but currently an Enterprise only product
  • m

    m99coder

    02/15/2023, 1:27 PM
    Ah… I see 🙏
  • m

    m99coder

    02/15/2023, 1:34 PM
    The Shopify blog post sounds very promising.
  • c

    Crazy Rabbit

    02/15/2023, 2:21 PM
    is there any option to store and retrieve data inside one data-center so those data does not need to propagate.
  • c

    Crazy Rabbit

    02/15/2023, 2:23 PM
    to be perfect for a api rate limiter
  • h

    HardAtWork

    02/15/2023, 2:27 PM
    A DO?
  • c

    Crazy Rabbit

    02/15/2023, 2:27 PM
    DO is per data-center?
1...227322742275...2509Latest