skip to content

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

  1. Write a lease interface with a quota, two timers, and an error contract.
  2. Size a warm pool from the arrival rate, the mean lease time, and a wait limit.
  3. Select an isolation level for each tenant class, and list what two browser sessions share at that level.
  4. Build a path that starts a browser from a snapshot and passes a uniqueness check before the first lease.
  5. Calculate the cost per session hour from the host cost, the utilization, the idle warm pool, and the exit traffic.
  6. Design a health check and a drain procedure that never cut a browser session without a notice.
  7. Write a threat model for a remote debugging endpoint, and configure an endpoint gateway that closes each path.
  8. 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

  1. L01 the service interface: lease, quota, and time to live
  2. L02 the pool and its warm start (not yet published)
  3. L03 isolation between tenants and sessions (not yet published)
  4. L04 snapshot, restore, and the uniqueness rule (not yet published)
  5. L05 health, drain, and the cost per session hour (not yet published)
  6. L06 security of a remote browser endpoint (not yet published)
  7. L07 placement of the session service in more than one region (not yet published)