How to have a new different instance for every request so that users only get their data? #2386
Unanswered
onurusluca
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Say I am sending a request to the crawler, and it crawls the website and send the logs and data to the user.
When I send 2 or more requests, it mixes up the data and sends all users data to every user. It just adds the request the to the queue.
How to isolate the crawler so that it only serves to one request?
I have checked with headless: false, it creates a new instance for every request but it still processes all requests from all users on all instances with no idea which user has what data.
Maybe I need a way to compare userId from the startCrawlHandler and the one inside requestHandler and compare them?
Or a way to add requests to the queue and process them one by one?
I have tried with RequestQueue but I think it is something different than what I am talking? It didn't do any difference.
Current code:
server:
...
crawler:
Beta Was this translation helpful? Give feedback.
All reactions