开发者

How to share memory buffer across sessions in Django?

开发者 https://www.devze.com 2022-12-28 16:02 出处:网络
I want to have one party (or more) sends a stream of data via HTTP request(s). Other parties will be able to receive the same stream of data in almost real-time.

I want to have one party (or more) sends a stream of data via HTTP request(s). Other parties will be able to receive the same stream of data in almost real-time.

The data s开发者_运维知识库tream should be accessible across sessions (according to access control list).

How can I do this in Django? If possible I would like to avoid database access and use in memory buffer (along with some synchronization mechanism)


Use posix_ipc or sysv_ipc to use shared memory.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号