What are the threading limitations I should watch out for?

In my Python, Django based webapp I receive a Webhook and I have to respond to that request within 2 seconds. To accomplish this I spawn a thread something like this

import threading; p = Threading.Thread(target=my_method, args=(args, here)); p.start(); 

My code is deployed on a auto scaling enabled serverless environment, specs, 1vcpu 2GB RAM. There are always plenty of servers go around usually 1 or 2 more than required. I wanna know if I can do this task a little better?

If you have no idea about Python and it's threading limitation do let me know how you'd achieve this task?

submitted by /u/Appropriate_Newt_238
[link] [comments]

from Software Development – methodologies, techniques, and tools. Covering Agile, RUP, Waterfall + more! https://ift.tt/3g2wZ4m

Leave a comment

Design a site like this with WordPress.com
Get started
search previous next tag category expand menu location phone mail time cart zoom edit close