I have read much articles about long polling in node js. I know php, js and node js. When i started learning node js i have had an idea. The idea was: user become page and when i insert data to db - smth appears in users browser without any reloads. My problem: i have read much articles with timeout or setinterval decisions, but i dont want to use this type of long polling, it seems kinda stupid for me.Then i have met article with socket.io implementation.It was the best decision.BUT i have met the article where someone described that firstly for the best practise need to learn websockets and after that, maybe, socket.io. So... After i have learned web sockets, i asks a quastions... 1. Is there any way to make websockets like socket.io without timeots and setinterval? 2. For example: i want to code social network with 100m visits daily, what is the best way to make long polling for this? 3. What will the best ajax request or websockets?
via Игорь Вучастый
No comments:
Post a Comment