简体   繁体   中英

How to use UDP to send data to client in Django?

I have read that Django uses HTTP request response architecture to process user requests. And we all know HTTP is an application layer protocol designed within the framework of the Internet protocol suite. Its definition presumes an underlying and reliable transport layer protocol, and Transmission Control Protocol (TCP). So my question is if django uses tcp to establish connection and suppose I want to serve videos or some other file using UDP. How can I achieve this?

You Can Use Django Channels with WebRTC ( RFC Here ) And Provide Real Time Communications Over TCP via Channels Package there are many useful sources to achieve. and also you can implement a microservice architecture to serve videos or some other file using UDP Like Node.js Server or etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM