Python, WSGI, multiprocessing and shared data

后端 未结 3 522
粉色の甜心
粉色の甜心 2021-01-30 22:43

I am a bit confused about multiproessing feature of mod_wsgi and about a general design of WSGI applications that would be executed on WSGI servers with multiprocessing ability.

3条回答
  •  太阳男子
    2021-01-30 23:11

    If you are using multiprocessing, there are multiple ways to share data between processes. Values and Arrays only work if processes have a parent/child relation (they are shared by inheriting). If that is not the case, use a Manager and Proxy objects.

提交回复
热议问题