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

    HardAtWork

    05/01/2023, 11:19 AM
    Here's a map of what datacenters you might hit, depending on your website tier: https://cloudflare.manfredi.io/en/tools/datacenters/
  • w

    Wichard

    05/01/2023, 11:27 AM
    Thanks, Im not sure how to interpret this though. I can see all of the datacenters in the map, but which ones correspond to which tier?
  • h

    HardAtWork

    05/01/2023, 11:27 AM
    Look at the table below. That shows which colo you are hitting for each tier
  • z

    zegevlier

    05/01/2023, 11:29 AM
    Most datacenters are available for all tiers. I really wouldn't worry about that unless you absolutely need the best of the best latency
  • z

    zegevlier

    05/01/2023, 11:30 AM
    The major exception to that is China. If you want decent latency in China you will need an ICP licence like HardAtWork pointed out
  • b

    Burrito

    05/01/2023, 11:31 AM
    Is China locked behind enterprise tier?
  • h

    HardAtWork

    05/01/2023, 11:32 AM
    No, China is a completely separate thing. You need to get approval from the government to use CF within the borders of China
  • b

    Burrito

    05/01/2023, 11:33 AM
    Hmm, last time I checked it you need that and also enterprise tier, perhaps I remember wrong.
  • h

    HardAtWork

    05/01/2023, 11:34 AM
    Maybe? All I know is that the ICP license part requires government approval
  • b

    boywithkeyboard

    05/01/2023, 1:07 PM
    when will workers support tcp connections? is there a beta which is open to the public?
  • m

    macmacmacprime

    05/01/2023, 1:10 PM
    i just tried searching, but couldn't find a conclusive answer
  • m

    macmacmacprime

    05/01/2023, 1:10 PM
    can I use my d1 db from a vercel edge function?
  • m

    macmacmacprime

    05/01/2023, 1:12 PM
    since vercel edge functions are running on cloudflare workers?
  • m

    macmacmacprime

    05/01/2023, 1:12 PM
    or if not, what's the next-best thing? something like a hosted libsql?
  • m

    macmacmacprime

    05/01/2023, 1:13 PM
    so I have a functional cloudflare worker project that does JWT auth on it's own
  • m

    macmacmacprime

    05/01/2023, 1:13 PM
    i'd like to put that infront of a new nextjs project im working on
  • m

    macmacmacprime

    05/01/2023, 1:15 PM
    so options are just use the api endpoints as-is and try to make it work, put the nextjs proj on CF pages and have it create and bind the d1 DB to the functions() it creates, or -- ideally -- re-write the cf worker to be a vercel edge middleware function(s)
  • b

    boywithkeyboard

    05/01/2023, 1:16 PM
    @macmacmacprime could you please stop spamming the chat and open a thread in #1052656806058528849 ?
  • c

    Cooleg

    05/01/2023, 1:20 PM
    speaking of which sorry abt asking for help here but im still real confused why this wont work https://discord.com/channels/595317990191398933/1101996847825944656
  • z

    zegevlier

    05/01/2023, 1:49 PM
    There is no timeline, but you can see there is some work happening with it on the workerd repo.
  • z

    zegevlier

    05/01/2023, 1:50 PM
    Next time, please phrase this more nicely.
  • b

    btc10mm

    05/01/2023, 2:03 PM
    What is the best compression library to use within a worker? I need to compress some data that will be stored in dynamodb, so not compressing the response, but a subrequest's payload
  • z

    Zed

    05/01/2023, 2:08 PM
    Is it possible to access more than one d1 database in a worker? I don't think I've seen examples of doing that. my idea was have one db for the shared data and access it in other workers + their own
  • s

    Skye

    05/01/2023, 2:10 PM
    You can yes, you just make two separate bindings 🙂
  • s

    Skye

    05/01/2023, 2:10 PM
    Same as having a D1 database and a KV namespace, for example
  • z

    Zed

    05/01/2023, 2:28 PM
    ahh thank you. i guess when i tried that earlier i messed something up. i got it working with this format d1_databases = [] and kv examples
  • e

    Erisa | Support Engineer

    05/01/2023, 8:02 PM
    correct, China Network addon is only available to Enterprise customers (and with the ICP fun stuff mentioned)
  • b

    Burrito

    05/01/2023, 8:04 PM
    Ah unfortunate, enterprise is too costly for small teams.
  • u

    Unsmart | Tech debt

    05/01/2023, 8:05 PM
    I assume dealing with the chinese government isnt exactly cheap 😛
  • w

    Walshy | Pages

    05/01/2023, 8:05 PM
    it is pretty cheap iirc
1...242924302431...2509Latest