deploy_feedback icon indicating copy to clipboard operation
deploy_feedback copied to clipboard

BroadcastChannel betwen EU and US regions

Open bolchowka opened this issue 3 years ago • 5 comments

Hello, I deployed my app on Deno Deploy. I'm trying to synchronise app state between regions with BroadcastChannel API. I am connected to a websocket on two browsers: one in europe-central2 region, second in us-east4. Messages sent from Europe are correctly received by BroadcastChannel onmessage handler in US. However, messages sent from US to EU are not received.

I can reproduce the same problem on the Deno Chat demo: https://denochat.deno.dev/. I'm connected to europe-central2 without VPN, and to us-east4 through Tunnelbear. Messages from EU are received by US, but not the other way.

Is this a known issue?

bolchowka avatar Aug 11 '22 15:08 bolchowka

I have just tested this again and the problem is gone. Both regions communicate well with each other.

Could that be some infrastructure problem?

bolchowka avatar Aug 12 '22 23:08 bolchowka

@bolchowka – this is still occurring between, at least, us-east5 and asia-northeast3.

CetinSert avatar Aug 22 '22 10:08 CetinSert

The problem unfortunately persists.

I'm now experiencing problem with asia-east1 instance. Messages sent from this instance are correctly received in other regions, but no messages sent from other regions reach asia-east1. Some regions in Europe also experience the same buggy behaviour.

Is there anything I could do to fix this deliverability problem?

bolchowka avatar Aug 24 '22 11:08 bolchowka

The Deno Deploy team is looking into this issue.

piscisaureus avatar Aug 24 '22 21:08 piscisaureus

I can confirm the problem persists, I'm currently trying to broadcast some messages from the us-east4 region to the europe-west8 one, but I receive nothing. Until today, it worked fine. Last time I remember testing this and seeing it work was the 8th September.

Did you make any progress on your side?

If you need any help to reproduce the issue, just let me know.

nesk avatar Sep 13 '22 21:09 nesk

@bolchowka – this is still occurring between, at least, us-east5 and asia-northeast3.

This still persists too.

CetinSert avatar Sep 14 '22 05:09 CetinSert

FYI, it seems rather erratic, today it works while yesterday it wasn't. 😅

nesk avatar Sep 14 '22 11:09 nesk

One more thing: this issue doesn't seem related to a broken deployment. A few hours ago, I've deployed a new version of my app, and the broadcasting from us-east4 to europe-west8 wasn't working. I've just tried once again right now, without deploying, and now it works. Note that the isolates have been shut down in between, fresh ones were started on my last test.

Did the Deno team made any progress on this? It's been one month since the last official message on the subject. It would be reassuring to hear about the team.

nesk avatar Sep 25 '22 21:09 nesk

Bump @piscisaureus

OzySky avatar Oct 03 '22 21:10 OzySky

Was this issue resolved? I intend to try out BroadcastChannel tomorrow which will be required to move my web app from Heroku to Deploy, but it's a non-starter if it's not working.

jakeg avatar Nov 13 '22 02:11 jakeg

Any updates?

CetinSert avatar Dec 21 '22 11:12 CetinSert

@piscisaureus – any progress?

CetinSert avatar Feb 01 '23 09:02 CetinSert

@CetinSert does BroadcastChannel still not work right?

piscisaureus avatar Feb 01 '23 09:02 piscisaureus

Should be fixed now, although https://denochat.deno.dev/ is still broken.

ry avatar Apr 07 '23 00:04 ry

This is still not working. Is this getting deployed slowly?


Tested with https://showcase-chat.deno.dev/ ❌ Korea ↔ US ❌ Korea ↔ EU ✔️ Korea ↔ Korea

CetinSert avatar Apr 07 '23 11:04 CetinSert