Python Forum
How to support multiple users with heavy data processing
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to support multiple users with heavy data processing
#1
Hi All,

Forgive my ignorance on the realities of networking but...how can I support many users simultaneously with my (cloud-hosted) scraping app ? I have written a demo that supports only a single user:

After user input (via browser) the script does several cycles of scraping and crunching - which usually takes 5-10 mins. (Users will get the output by email). This is fine for a single user, but how could I support 100 or even 1000 users simultaneously? A separate script running for every single user?! :-O

Queue? - not really feasible because users wont wait for their report for very long
Multi-thread? - this will slow things down (each thread will take longer than it would as a single thread - right?)

...so I am left wondering if I have to have one script running for every single user ?!

Somewhere else I saw a reference to Twisted, but I am not sure how this fits.

There must be other web apps or cloud-based services that have to deliver serious real-time data crunching to users. How do they do that?

Thanks a lot for any help in advance - I really appreciate any advice.
Reply


Messages In This Thread
How to support multiple users with heavy data processing - by Gingmeister - Jun-19-2018, 06:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to split socket data onto multiple clients for separate processing ConcealedFox70 0 1,954 Jan-11-2022, 08:26 PM
Last Post: ConcealedFox70
  Socket won't receive data suddenly with multiple clients SquareRoot 0 2,805 Sep-06-2017, 09:09 PM
Last Post: SquareRoot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020