Forum Discussion
Hannes_Rapp
Nimbostratus
Your problem is serial-execution, or in other words - lack of parallelism.
If you have Python2.5 or older, use threading.Thread: https://docs.python.org/2/library/threading.htmlthreading.Thread
If you have Python2.6 or newer, use multiprocessing https://docs.python.org/2/library/multiprocessing.html
- Threading will enable you to run multiple IO-wait streams but you're still stuck to a single-core processing on the client-side. For this task, you are limited on IO-wait, and not on client-side processing power, so it should still help you a lot.
- Multiprocessing offers the same as Threading, but also allows you to take advantage of more than one CPU core on the client-side.
Beware that running too many parallel API calls can easily utilize 100% of your F5 appliance CPU. (Test in QA first, and look at performance graphs to find the sweet spot)
DevBabu
Apr 01, 2016Cirrus
Thanks Hannes I will try that one too.