Answer the question
In order to leave comments, you need to log in
How can I read RSS on the server?
You need to parse RSS on the server and write it to the database.
But there is one thing - requesting every 5/10/30 seconds is not an option, you need to update the news as it comes out.
I see the solution only in the implementation of the Comet client on the server, but I can't figure out how to implement it correctly. In theory, you need to open a long-polling connection. How can I do that?
The languages being considered for solving the problem are php (symfony2) or js (node.js).
Thank you for your attention.
Answer the question
In order to leave comments, you need to log in
WebSockets
may be suitable for dynamic client updates . Node.js often uses socket.io . Again, node.js supports RSS parsing .
If you want to monitor someone else's feed, then you need to periodically ask someone else's server if the file has changed. This is done through HTTP headers. Or agree with the owner of the news about the notification, something realtime updates
if you just need to parse, then you don’t have options except just in seconds.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question