Subsystem โ€ข Warm Instance Pool & TTL Reaper

Sub-100ms Startup via Warm Chromium Pool

Eliminate 2โ€“3 second cold-start delays. Our pool keeps pre-warmed headless Chromium processes ready in memory, enforces per-plan concurrency isolation, and reaps idle browsers automatically.

โšก

Instant Warm Pool Claim

Standard headless Chrome spawns take 1.5โ€“3s under load. When your settings match standard defaults, our gateway hands off a ready warm process in milliseconds and replenishes asynchronously.

๐Ÿงน

Deterministic TTL Reaper

Every 10 seconds a background reaper checks idle duration and total lifetime (configurable per user in unified settings) and terminates stale processes to prevent RAM leaks.

๐Ÿ”’

Strict Account Isolation

Each session runs with an isolated ephemeral profile directory and strict ownerUid verification so no other tenant can view, attach to, or terminate your browser instances.

Browser Session State Machine
[START]
   โ”‚
   โ–ผ
[LAUNCHING] โ”€โ”€(dynamic port probe + Chromium ready)โ”€โ”€โ–บ [READY (Warm Pool)]
   โ”‚                                                          โ”‚
   โ”‚                                              (client connects /connect)
   โ–ผ                                                          โ”‚
[ERROR] โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ [ATTACHED (Active)]
   โ”‚                                                          โ”‚
   โ”‚                                              (WebSocket disconnected)
   โ–ผ                                                          โ”‚
[CLOSED] โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€(TTL Reaper / Eviction)โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ [READY (Idle)]
   โ”‚
   โ–ผ
[CLEANUP] (wipe ephemeral profile directory & free port)