How to handle a heavy request on a server?

363 views Asked by At

I don't know if this is the right place to ask but, i am desperate for an answer.

The problem in hand here is not the number of requests but, the amount of time one single request will take. For each request, the server has to query about 12 different sources for data and it can take upto 6 hours for server to get the data (let's leave request timeout from this because, this is not the server directly communicating with the client. This server is fetching messages from kafka and then starts getting the data from the sources). I am supposed to come up with a scalable solution. Can anyone help me with this?

The problem don't end here:

  • Once the server gets the data, he has to push to kafka for further computation using spark. Streaming api will be used in this part.

I am open to any web framework or any scaling solution in python.

0

There are 0 answers