3
votes

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?

1
please don't downvote at least point me to the right source or answerEquinox
With a video streaming server. Django is not the right choice for serving large amounts of data.Klaus D.
lets say we want to send text file using udp how can it be achieved?Equinox
This doesn't have anything to do with Django. Django doesn't "establish connection"; the client does that, Django just replies with the data requested.Daniel Roseman
@DeveloperP Because Django is not a server, it's a web framework. It is meant to be run behind an actual web server which handles the TCP or HTTP connections and only forwards the data to Django. So, even TCP isn't "built into" Django.xyres

1 Answers

0
votes

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.