part 7 · sources checked 2026-11-22
the browser session service
This module shows how to run long-lived browsers on your own hosts and give them to many clients through a lease.
purpose
A session service keeps browsers on its own hosts for a long time, and many clients share them. Each client gets one browser session through a lease, with limits on its use and on its time.
After the module, you can design the service and give its cost for each hour of a browser session.
objectives
- Write a lease interface with a quota, two timers, and an error contract.
- Size a warm pool from the arrival rate, the mean lease time, and a wait limit.
- Select an isolation level for each tenant class, and list what two browser sessions share at that level.
- Build a path that starts a browser from a snapshot and passes a uniqueness check before the first lease.
- Calculate the cost per session hour from the host cost, the utilization, the idle warm pool, and the exit traffic.
- Design a health check and a drain procedure that never cut a browser session without a notice.
- Write a threat model for a remote debugging endpoint, and configure an endpoint gateway that closes each path.
- Measure in your lab which values link browser sessions from one host, one snapshot, or one pool.
lessons
1 of 7 published
a dim title is not yet published
- L01 the service interface: lease, quota, and time to live
- L02 the pool and its warm start (not yet published)
- L03 isolation between tenants and sessions (not yet published)
- L04 snapshot, restore, and the uniqueness rule (not yet published)
- L05 health, drain, and the cost per session hour (not yet published)
- L06 security of a remote browser endpoint (not yet published)
- L07 placement of the session service in more than one region (not yet published)