firebase / firebase/firebase-unity-sdk

[FR]: An easy / optimal way to get Server Time

Open
#1,150 6 comments 11 reactions 0 assignees View on GitHub
api: database api: functions type: feature request
Dominant language
C#
Stars
320
Forks
60
Avg merge
11h 15m
Merged PRs (30d)
11

Description

### Description

We have a custom Firebase Function implemented ot request Server Time, and the app always requests it at least once per hour (or whenever something happens in the game).

Our current issues:
- We have millions of players
- As you can see from the graph below, when all active players request time at hour intervals, the request can timeout, due to servers not scaling fast enough.
- It's hard to find optimal configuration for this function, also in terms of pricing
![image](https://github.com/user-attachments/assets/eca88878-af6d-4c56-8090-7cc111f5735b)

If you have any other ideas, please let us know.

### API Proposal

_No response_

### Firebase Product(s)

All

### Targeted Platform(s)

Apple Platforms, Android, Desktop

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.