E
E
Eugene2019-06-05 20:59:02
Node.js
Eugene, 2019-06-05 20:59:02

How to run multiple browsers at the same time?

To automatically upload data to the account, I use puppeteerjs. The browser starts, logs into the account and, using cron, checks the database (mongodb) for new information on a schedule, after which it loads it and waits for the next arrival.
Now there is a need to serve more accounts. The question is how to run multiple browsers for this?
I have two options. First, run each browser in a separate docker container. At the same time, it is not clear how to transfer authorization data to it and pull out logs with screenshots.
The second option is to use worker_threads.
What are the pros and cons of using these approaches? Are there any other options?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2019-06-06
@Zarom

Aerokube (selenoid)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question