From c2f7399e62bd1820830623e2254bfed9468c1169 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Fri, 4 Sep 2026 14:09:38 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F(frontend)=20increase=20lobby?= =?UTF-8?q?=20polling=20interval=20on=20both=20sides?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Increase the polling interval used by the lobby feature, on both the waiting participant side and the moderator side. The goal is to reduce the volume of requests the lobby generates, trading a bit of data freshness for better performance. It will de facto reduce pressure on the backend. We will observe the impact in production, and revisit these intervals if the delays turn out to be too aggressive. --- CHANGELOG.md | 1 + src/backend/meet/settings.py | 2 +- src/frontend/src/features/rooms/components/LobbyProvider.tsx | 4 ++-- src/frontend/src/features/rooms/hooks/useLobby.ts | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97e03a49..173bd674 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ and this project adheres to - 🐛(frontend) keep the sending resolution picked while the camera is off #1667 - 🐛(frontend) restore automatic lower-hand on speaking - 🐛(frontend) center Avatar initials with a font-aware cap-height ratio +- ⚡️(frontend) increase lobby polling interval on both sides ## [1.30.0] - 2026-09-01 diff --git a/src/backend/meet/settings.py b/src/backend/meet/settings.py index 2f0ceeed..d434a554 100755 --- a/src/backend/meet/settings.py +++ b/src/backend/meet/settings.py @@ -865,7 +865,7 @@ class Base(Configuration): "room_lobby", environ_name="LOBBY_KEY_PREFIX", environ_prefix=None ) LOBBY_WAITING_TIMEOUT = values.PositiveIntegerValue( - 3, environ_name="LOBBY_WAITING_TIMEOUT", environ_prefix=None + 6, environ_name="LOBBY_WAITING_TIMEOUT", environ_prefix=None ) LOBBY_DENIED_TIMEOUT = values.PositiveIntegerValue( 5, environ_name="LOBBY_DENIED_TIMEOUT", environ_prefix=None diff --git a/src/frontend/src/features/rooms/components/LobbyProvider.tsx b/src/frontend/src/features/rooms/components/LobbyProvider.tsx index 552f81ee..d01ebb5a 100644 --- a/src/frontend/src/features/rooms/components/LobbyProvider.tsx +++ b/src/frontend/src/features/rooms/components/LobbyProvider.tsx @@ -12,8 +12,8 @@ import { keys } from '@/api/queryKeys' import { queryClient } from '@/api/queryClient' import { ApiError } from '@/api/ApiError' -export const POLL_INTERVAL_MS = 1000 -export const LAZY_POLL_INTERVAL_MS = 10_000 +export const POLL_INTERVAL_MS = 4_000 +export const LAZY_POLL_INTERVAL_MS = 15_000 export const LobbyProvider = () => { const room = useRoomContext() diff --git a/src/frontend/src/features/rooms/hooks/useLobby.ts b/src/frontend/src/features/rooms/hooks/useLobby.ts index c454d31f..3e5f14bc 100644 --- a/src/frontend/src/features/rooms/hooks/useLobby.ts +++ b/src/frontend/src/features/rooms/hooks/useLobby.ts @@ -8,7 +8,7 @@ import { } from '../api/requestEntry' export const WAIT_TIMEOUT_MS = 600000 // 10 minutes -export const POLL_INTERVAL_MS = 1000 +export const POLL_INTERVAL_MS = 3_000 export const useLobby = ({ roomId,