I studied different systems for creating a quick cache in a web farm with Python / mod_wsgi. Memcache and other options ... But I was wondering:
Because I do not need to exchange data between machines, wanting each machine to support local cache ...
Does Python or WSGI provide a mechanism for Python's own shared Python data in Apache so that data is stored and accessible to all threads / processes until the server restarts? So, could I just store the object cache with the concurrency control in the memory of all running application instances?
If not, that would be helpful.
Thanks!
Django -, . . cPickle-based, Django, Django, , . , , ; , , IPC- (, ) memcached , , , - , - Python, .
memcached
mod_wsgi. : , , .
, Beaker, , memcache.
I understand that this is an old thread, but here is another option for a "server-wide dict": http://poshmodule.sourceforge.net/posh/html/posh.html (POSH, Python Common Objects). Disclaimer: I have not used it myself yet.
Source: https://habr.com/ru/post/1712375/More articles:Does anyone know if Android addProximityAlert in LocationManager is an intense battery - androidJoomla URLs: Does the article not have a pretty URL in itself? - urlGoogle Map picture not showing on emulator - androidSQL Server 2008 fill factor - sqlJava input in Clojure with (read-line), which is not read correctly in Emacs - javaHow can I recreate ImageKit Picture Taker? - javascriptC # this.everything? - c #Какой инструмент может помочь создать базу данных SQL Server 2005/2008 с диаграммы E-R? - sql-serverDelphi: Reading the number of columns + names from a dataset? - delphiQuestion about Visual C ++ argv - c ++All Articles