Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question