Hacker News new | ask | show | jobs
by HyprMusic 551 days ago
Shame I already rolled this out in-house (and spent way too long trying to achieve it) - this would have been perfect for my use case. If you don't mind me asking, how do you get chrome to boot so quickly? GCP is unbelievably good at launching containers quickly but chrome is slow to launch.
2 comments

We actually keep a pool of browsers ready so when a request comes we just assign it to an already running browser. This way in most situations there is no actual waiting for chrome to startup!
Ah of course, makes total sense. Thanks for answering!
Is each browser process dedicated to a single customer, or do you clear cookies and other state (localStorage, cache, Chrome advertising features...) between customers?
We use a new browser for each session you create! We don't share the browsers between different customers.
What challenges did you face in rolling this out? I did as well, and it didnt take long but thats only because I didnt aim for 100% perfection and was OK with being able to crawl 90% of webpages i encountered