Surgery on Chromium Source Code: Replacing DevTools' HTTP Handler With Redis Pub/Sub
deadf00d.com·9h·
Discuss: r/programming
🔧Developer tools
Preview
Report Post

During my time at Pikkit, we frequently needed to spin up large numbers of browser sessions to automate tasks across various websites.

The traditional approach is to run Chromium inside containers and expose a DevTools endpoint using the --remote-debugging flag. Architecturally, it looks like this:

Puppeteer client (Devtools) ⇌ Chromium Remote Debugging Server (Devtools)

The main challenge with this setup is that the Chromium Remote Debugging Server don’t become available instantly, it takes time for the browser to start. This forces you to repeatedly poll for reachability, which introduce complexity and instability.

Also, because DevTools communicates strictly over TCP/IP, any lost packets can instantly break the session. Which is an issue that happens on about 1% of t…

Similar Posts

Loading similar posts...