Tagged Questions
24
votes
4answers
4k views
Should I stick with or abandon Python to deal with concurrency?
I have a 10K LOC project written in Django with quite a deal of Celery (RabbitMQ) for asynchronicity and background jobs where needed, and have come to the conclusion that parts of the system would ...
2
votes
1answer
116 views
Where to implement thread-safety logic for my queue data structure?
I will immediately confess that I do very little multithreading, so questions of style and organization in this domain a little fresh to me.
I've written a data structure (in Python, if that matters) ...
11
votes
2answers
1k views
SQLite with two python processes accessing it: one reading, one writing
I'm developing a small system with two components: one polls data from an internet resource and translates it into sql data to persist it locally; the second one reads that sql data from the local ...
1
vote
3answers
2k views
How can I multiprocess my program?
I wrote a program which scrape internet sites. It is pretty straigtforward because it process link one by one.
With the limiting factor of the internet speed, the process is rather slow.
I wonder, ...
4
votes
2answers
2k views
Python threading vs. multiprocessing: Should I learn one before the other?
I'm looking to dive into multithreading or multiprocessing in Python. Question: should I be learning one before the other (for any reason)? If so, which one and why?
I've read the pro's and con's in ...