Answer the question
In order to leave comments, you need to log in
What is the best solution to use for Django async?
There is a simple site on Django: 1 application - about 5 pages
Task: on this site you need to make it possible to create dynamic pages of the same type (DetailView), on which new information will come from the server in real time - each page has its own. The exchange of messages from the client to the server must also be available. I implemented the client-server connection through AJAX (although you can replay it). But I can't figure out what technology to use for server-client communication. The very essence of the application is something like a chat, where each individual page is a room where individual people sit. Accordingly, each room has its own information, which is updated in real time. The real task is quite a bit different, but the principle is exactly the same
What I tried to do:started implementing server-client requests via SSE (server-sent events), but halfway through I read that they have a limit of 5 clients (did not check). I also looked at information about channels, but everyone has different opinions about it too. I thought about polling, but, most likely, the load will be very large then
Estimated workload: there will be up to 30-40 such rooms (pages) at the same time, up to 50 people in each room
I work with asynchrony for the first time, so I really need help or advice - tell me , please, what is the best way to use in this situation?
Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question