Python / mod_wsgi global server data

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!

+3
source share
3

Django -, . . cPickle-based, Django, Django, , . , , ; , , IPC- (, ) memcached , , , - , - Python, .

+1

mod_wsgi. : , , .

, Beaker, , memcache.

+2

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.

0
source

Source: https://habr.com/ru/post/1712375/


All Articles