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

    kian

    04/21/2023, 3:27 PM
    Does it matter which backend they hit, other than latency?
  • k

    kian

    04/21/2023, 3:27 PM
    I assume they hold the same data
  • d

    dave

    04/21/2023, 3:28 PM
    doesn't matter, aside from latency
  • k

    kian

    04/21/2023, 3:31 PM
    It'll only move the Worker if it knows it'll be an overall RTT decrease - otherwise, it won't move it at all. How that works out for your exact use-case, enable it & look at the
    CF-Placement
    response header
  • k

    kian

    04/21/2023, 3:31 PM
    That'll tell you which colo it's running from
  • d

    dave

    04/21/2023, 3:32 PM
    ahh
  • c

    Crazy Rabbit

    04/21/2023, 3:33 PM
    When registering you can let users to choose location.
  • d

    dave

    04/21/2023, 3:34 PM
    what do you mean?
  • c

    Crazy Rabbit

    04/21/2023, 3:34 PM
    So users will choose EU, US... server when they are creating account.
  • c

    Crazy Rabbit

    04/21/2023, 3:35 PM
    And if they choose US for example you can store data in D1 located in US.
  • c

    Crazy Rabbit

    04/21/2023, 3:35 PM
    So to separate users
  • d

    dave

    04/21/2023, 3:36 PM
    eh most of our use-cases are from users that aren't registered with us
  • d

    dave

    04/21/2023, 4:02 PM
    Copy code
    cf-placement: local-MIA
    What does the local prefix mean?
  • d

    dave

    04/21/2023, 4:02 PM
    oh
  • d

    dave

    04/21/2023, 4:02 PM
    Copy code
    cf-placement: remote-IAD
  • d

    dave

    04/21/2023, 4:02 PM
    neat
  • d

    dave

    04/21/2023, 4:03 PM
    aww okay so it seems to be doing the mistake I was worried about
  • d

    dave

    04/21/2023, 4:04 PM
    EU users end up using the US backend
  • d

    dave

    04/21/2023, 4:04 PM
    I get
    remote-IAD
    even for EU users, when it should be using an S3 endpoint in the EU 😦
  • k

    kian

    04/21/2023, 4:04 PM
    it'll go for whichever has the best overall impact iirc
  • k

    kian

    04/21/2023, 4:05 PM
    it only operates on the entire worker rather than path and whatnot
  • k

    kian

    04/21/2023, 4:05 PM
    so if you have 70% US users then they'd take priority
  • d

    dave

    04/21/2023, 4:05 PM
    ooouf yeah that'll be another problem
  • d

    dave

    04/21/2023, 4:13 PM
    yeah, not sure why I thought it would help this specific Worker lol
  • d

    dave

    04/21/2023, 4:13 PM
    I compared with it on/off, and off is much better
  • m

    meyer

    04/21/2023, 7:43 PM
    i have a potentially silly question. i’ve got one worker that’s checking the status of a bunch of things. i’d love to trigger other workers when the status of those things change without hard-coding which workers to trigger. is this the type of thing people use pubsub for or is there a better way to do this? if pubsub is the way i’ll sign up for the beta.
  • k

    kian

    04/21/2023, 7:47 PM
    PubSub/Queues sounds good for it, yeah
  • m

    meyer

    04/21/2023, 7:48 PM
    ty
  • m

    meyer

    04/21/2023, 7:49 PM
    i was considering queues but they can allegedly have only one consumer
  • k

    kian

    04/21/2023, 7:51 PM
    Not that I'm aware of?
1...240824092410...2509Latest