We live in a fast-moving world where we are almost addicted to new information. A lot is happening, even more content is published online, and more and more people are hit by the unwelcome FOMO (Fear of Missing Out). The online community had to cope with this flood of messages somehow, so people designed various apps and solutions and worked out their own methods. Some simply visit their favorite sites every now and then, others look for news aggregators, and still others only skim the headlines and save links for later with browser shortcuts or special apps. And some people gave up on all of it and moved to the Bieszczady mountains.
As in many other cases, the Internet (or rather the people who together build the global village) created some tools for this, and RSS feeds are among them. This article is about them. Honestly, between 2004 and 2008 there would have been no need to write a text like the one you are reading now. RSS was very common back then, some browsers even offered it by default (that is how I learned about it, by the way), and a lot of people used it. Interest in it is slowly coming back, but for many years the technology sat almost forgotten in a drawer. Why? The answer is social media and subscription mechanisms. Users, charmed by that kind of platform, started following everyone there. They got news about new content, but they also read comments and kept in touch with friends. That charm wore off too and revealed some problems (among them the information overload I already mentioned). RSS feeds never disappeared, and now they are slowly coming back into favor, or rather back to "normal".
So let us talk about them from a technical point of view and about how they can be used.
What is RSS?
The abbreviation has two expansions:
- RDF Site Summary (RDF = Resource Description Framework)
- Really Simple Syndication
It is a family of markup-based languages used to create news feeds that can be followed. You could say that every feed (also called a channel) is a kind of "profile" holding the latest content from a given site. It can be added to an app that works as an RSS reader (not a physical device, like an e-book reader). With such apps, users can follow news from many different places, meaning the sites they care about, in one spot. In other words, RSS is used to build your personal news service that aggregates content from different websites. You can also think of it as a TV that, once turned on, shows many channels and the latest news from each of them.
I wrote on purpose that it is a family of languages. There is no single standard for "encoding" such a feed, even though Atom was meant to be one. Still, the technology is mature enough that modern RSS readers should have no problem with the different variants of the feed format. What matters is that the site publishes a feed (or several feeds), which we will get to in a moment.
How is a feed read, technically?
Contrary to appearances, the whole process is not particularly complicated. An RSS feed on a website (or any other resource) is nothing more than an XML file available at a given URL and read periodically by readers on users' devices. More precisely:
- The website builds a properly structured XML file and updates it from time to time (with new articles, news and so on).
- This XML file must be publicly available online.
- A special tag in the
HEADsection of the page holds a link to the feed and its description. - In their RSS reader (for example in the browser), the user adds the address to their subscriptions. If the reader is a browser extension, it usually offers an easy way to subscribe once you open the page with the feed.
- At regular intervals, the RSS reader fetches the XML file in the background and checks whether there is an update.
- If there is a new item, the reader notifies the user.
So in practice we have two tasks that run periodically. On one side, the website updates its feed file with, say, the new items that appeared on the site. On the other side, the RSS reader looks at that file and checks whether anything has changed. For the site's author, this does not require opening a special port on the server or installing extra software. The site "only" has to create and fill a text file and make it reachable at a given address. Very often these are links like adresstrony.com/rss.xml (where adresstrony.com stands for the site's own domain).
Creating your own feed
We know that delivering a news feed means creating an XML file, which many languages and frameworks can handle. For example, the PHP language ships with the SimpleXML extension in its standard library, which makes working with this format easier. Still, you need to know how such an XML file for RSS is built.
As I said, RSS is not quite a standard but rather a family of methods that provide guidelines. Because these formats are mature and have been around for many years, readers cope with different notations. Even so, some elements are common to all of them.
Our blog is a good example. The XML file we build every hour is available at https://wildasoftware.pl/rss.xml. Feel free to click the link and open it in your browser.
The file is built like this:
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0"> <channel> <title>Blog Wilda Software</title> <link>https://wildasoftware.pl</link> <description>Blog prowadzony przez Wilda Software o tworzeniu oprogramowania i przybliżający branżę IT spoza niej.</description> <lastBuildDate>Thu, 3 Sep 2023 01:02:00 +0000</lastBuildDate> <language>pl-PL</language> <atom:link href="https://wildasoftware.pl/rss.xml" rel="self" type="application/rss+xml"/> <item> <title>Kiedy 99,9% nie ma znaczenia</title> <link>https://wildasoftware.pl/post/kiedy-999-nie-ma-znaczenia?ref=rss</link> <guid>https://wildasoftware.pl/post/kiedy-999-nie-ma-znaczenia?ref=rss</guid> <pubDate>Sat, 01 Feb 2020 00:00:07 +0000</pubDate> <content:encoded> <![CDATA[ <p>Osoby pracujące w IT...</p> ]]> </content:encoded> </item> <item> ... </item> ... </channel> </rss>
This is the structure of a typical XML file. We start with the root node rss, which tells the reader that this is an RSS file at all, and then comes the channel tag, which in the Atom standard can also be called feed. This is where the basic information about the site goes, a kind of "introduction" so that users can find us more easily once they add the feed to their subscriptions. You can provide a title, a link, a description and, for the technical layer of readers, the language and the date the file was last built. Thanks to this, the reader on the receiving end can optimize how it fetches feeds and check for changes only in those that declare a new build time. On our blog, articles appear at weekly or two-week intervals, so there is no need to update the file many times a day like news portals do. We could do it once a week or once a night, but we also have to remember that a subscriber wants to learn about a new article as soon as possible. That is why we generate a new file every hour.
Next comes a series of item nodes, and these are the entries that are fetched and shown in the RSS reader. In our case they are articles, each with a title, a link and an entry identifier (it is worth knowing the difference), a publication date and the content, at least in a shortened form. That last node can contain HTML, which would normally make the XML file easy to misread, since the two formats are quite similar in structure. That is why such descriptions are best wrapped in the special marker, which keeps any tags inside from being interpreted.
As you can see, there can be many item nodes and new ones keep being added. That is how news gets added. Of course, it does not always make sense to keep old nodes, say from a year ago. Nobody will read them in an RSS reader and they only take up space. A file that keeps growing loads more slowly and is worse to read, so people become less willing to subscribe to it.
So we have an XML file. How do we tell the world that we publish it? A suitable tag in the HEAD section of the page does that. In our case it looks like this:
<link rel="alternate" type="application/rss+xml" title="Bądź na bieżąco z artykułami na blogu Wilda Software" href="https://wildasoftware.pl/rss.xml">
That is all. Readers can now see (as long as the file has a valid structure) that this RSS feed can be added to a subscription.
Let us go back for a moment to the language setting and one thing related to it. If the site serves content for a specific audience, has a strict split into categories, or you want to announce comments separately, you can generate multiple feeds. We are not limited to one XML file and one tag. You can have many and publish them separately. Some readers show this, letting you pick a specific feed for a given site.
It is also worth mentioning that you do not have to create such a file by hand. Libraries exist for many well-known technologies, and for sites built with, say, WordPress, plugins can do the job for the developer based on an initial configuration.
Is it worth having your own RSS feed?
If a website is just a business card, only a shop, or a work system with specific functions, an RSS feed may indeed make no sense. But most places online publish new resources they want to tell their audience about, and then an RSS feed is a good choice. These are:
- news portals,
- blogs,
- discussion places (forums),
- classified ad sites
and many other sites. Even the shops mentioned earlier can run a blog that supports their main business. We are an example ourselves: our site presents our company profile and the services we offer, but the RSS feed points to the blog, because that is where the new content comes from.
This way of notifying is independent and reaches readers directly. It does not conflict with other ways of reaching potential readers either, and it does not stop you from advertising in other ways. It is an example of owned media, which are very much in demand. More importantly, once you prepare them and set up the automatic mechanisms, there is no need to edit them, let alone update the file by hand. In short, there are hardly any arguments against using RSS on a site with content. Of course, it should not be the only way you announce new posts or news.
RSS feeds and social media
I mentioned that at some point social media took over the role of notifications. In one place they show news, comments from other users and all kinds of other material: opinions, discussions, curiosities and memes. Many internet users decided that there is no point in setting up RSS when everything is on a platform they browse regularly anyway. Or on several platforms. And that is exactly where the problem starts.
Social media is a very good tool and it is hard to imagine life without it, also for companies, even small ones. But as it grew, people started to "swim" in new content, and that slowly began to bother them. Platforms like Instagram, Twitter/X or LinkedIn can bring joy, but they can also overwhelm you with new messages and disturb what you might call your internet hygiene. As a result, finding the news about a new article by your favorite blogger in that thicket can border on a miracle, especially if that blogger also posts about completely different topics (and let us be honest, most do, because otherwise they "don't exist" or don't earn money). On the other hand, checking several places by hand to find a new article defeats the purpose and wastes time.
That is why RSS feeds are still an interesting solution. They suit people who want to cut themselves off from this online noise but still want to follow new articles from their favorite creators. What is more, the two channels are "compatible". You can announce new items both through a feed and through social media, and as I wrote, the feed does this automatically, with no active effort on our part. On top of that, social platforms themselves sometimes offer RSS feeds. Mastodon is an example. If the profile address is, say, https://social.wildasoftware.pl/@wilda, adding ".rss" at the end gives you the feed in question.
The one major drawback of RSS feeds compared to social media is that there is no clear information on how many people subscribe to a given feed. Still, thanks to various readers and services that fetch the data, you can estimate it.
Summary
RSS feeds are a somewhat forgotten technology in the face of "exciting" social platforms, but they are still important and valuable. They also simply work, in a very understandable way, so they do not take much time to maintain. Many users have a reader built into the browser, or you can easily install one. All you need to do is put it all together and use RSS to have all the news in one place.
Best regards and thank you, Jakub Rojek.


