Scrapeless Wiki

What Is a Cloud Browser? – Definition and How It Works

Informational P1 what is a cloud browser

Learn what a cloud browser is, how remote sessions are addressed over CDP, what problems it solves at scale, and how it differs from local headless.

A cloud browser is a real browser running on managed infrastructure that your code connects to over the network, instead of a browser installed on the machine running the script.

1. What Is a Cloud Browser?

It separates the automation script from the browser process.

  • Key idea: the browser becomes a remote service addressed by URL.
  • Mechanism: the provider starts a session and returns an endpoint; a client library connects to it over a WebSocket.
  • Goal: run many browser sessions without operating browser infrastructure yourself.

Example of Connecting

browser = playwright.chromium.connect_over_cdp(endpoint_url)
page = browser.new_page()
page.goto("https://example.com")

The script is otherwise identical to one driving a local browser.

2. What It Solves

Problem locally With a cloud browser
Each session needs memory and CPU on your machine Capacity is the provider's concern
Browser and driver versions must be installed and updated Managed by the provider
Concurrency is capped by one host Sessions scale horizontally
Every session leaves from one address Egress is configurable per session
Crashes take down local work Sessions are isolated and disposable

3. How Sessions Are Configured

Session behaviour is usually set through parameters on the connection URL β€” how long the session lives, which region it egresses from, and what device profile it presents. Because configuration travels in the URL, the credential does too, which makes that URL a secret: it should never be logged, printed, or committed.

4. Cloud Browser Versus Local Headless

  • Local headless β€” lowest latency, free at small scale, and fully under your control. Ideal for development and modest workloads.
  • Cloud browser β€” pays off when concurrency, geographic distribution, or session isolation matter more than per-session cost.

The crossover is usually operational rather than financial: the point where maintaining browser fleet capacity stops being a good use of engineering time.

5. What Stays Your Responsibility

  • Extraction logic. A remote browser returns a page; parsing it is still your code.
  • Politeness. Concurrency limits and request pacing against target sites.
  • Waiting strategy. Network latency to a remote browser makes naive fixed waits worse, not better.
  • Secret handling. The endpoint URL carries the key.

6. Practical Differences to Expect

Remote sessions behave slightly differently from local ones in ways worth knowing before debugging:

  • Round-trip latency per command is higher, so chatty scripts slow down noticeably. Prefer one in-page evaluation over dozens of individual calls.
  • Some viewport and window controls that work locally are not honoured remotely, because the real window is created by the provider.
  • Screenshots and DOM measurements may reference different frames, so coordinate-based interaction is less reliable than element-based.

7. Common Misconceptions

  • "It is just headless somewhere else." Sessions are typically full browsers, and headless mode is a separate choice.
  • "It makes automation undetectable." It changes where the browser runs and how it egresses; the site still evaluates the same signals.
  • "Any library works unchanged." Libraries that only launch local processes need an explicit remote-connection path.

8. Summary

A cloud browser moves the browser process to managed infrastructure and hands your script a connection endpoint. It removes fleet operation, scales concurrency, and lets egress be configured per session.

The script logic barely changes; what changes is latency, viewport control, and the fact that your connection string is now a credential.