How would one make Python objects persistent in a web-app?

前端 未结 6 439
夕颜
夕颜 2021-02-06 11:27

I\'m writing a reasonably complex web application. The Python backend runs an algorithm whose state depends on data stored in several interrelated database tables which does not

6条回答
  •  南方客
    南方客 (楼主)
    2021-02-06 11:56

    I think that the multiprocessing framework has what might be applicable here - namely the shared ctypes module.

    Multiprocessing is fairly new to Python, so it might have some oddities. I am not quite sure whether the solution works with processes not spawned via multiprocessing.

提交回复
热议问题