firebase / firebase/firebase-js-sdk

starting a snapshot listener from afar causes problems

Open
#8,451 24 comments 0 reactions 1 assignee Claimed by @wu-hui View on GitHub
api: firestore needs-attention question stack:React
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

### Operating System

windows

### Environment (if applicable)

chrome

### Firebase SDK Version

10.13.0

### Firebase SDK Product(s)

Firestore

### Project Tooling

create-react-app example

### Detailed Problem Description

i have a collection with ~50 megabytes of data across ~1500 documents.

when i try to start a listener while in north america (connecting to US firestore), it takes only 10 seconds to start the listener, and it completes 100% of the time

image

. when i turn on my india VPN (same machine, same code, only difference is routing through india), the listener never even completes.

i immediately get these errors -

image

on some machines from APAC region connecting to US firestore, i also get really poor behavior, and it never actually succeeds.

![image](https://github.com/user-attachments/assets/7848e768-8e7e-485d-abb3-17b5da2c04a8)

for what its worth - the connection FROM india to united states should easily be able to handle this...

image

### Steps and code to reproduce issue

if someone wants to email me i can send them the info for the recreate. it's a few lines of code.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.