If you were to build a fairly complicated website, and you wanted to add features like instant messaging (one to one and multi-chat like a chat room, and possibly if the site becomes profitable enough, voice/video chatting) and you wanted to be able to store these chat sessions, would it be better to use AJAX or Web Sockets? What would be the pros and cons of each technology?
p.s The backend development will be done with python and django.
p.p.s An irrelvant question, but what would be the best way to store such communications to reduce redundancy, would you just throw all chat sessions into a table along with the usernames or user Id's of those who were involved in the chat session, and return all the conversations a particular user has participated in and display ordered by date/time? I'm new to this stuff, so sorry if I come across as a total idiot.