# WebSub and instant feed updates

URL: https://ekom.blog/websub-and-instant-feed-updates/
Published: 2023-12-20
Author: Ekom
Topics: How the internet works

> What WebSub is, how it pushes new posts to subscribers within seconds instead of waiting for feed readers to check, and whether your site needs it.

You publish a post. A reader with a feed reader should see it straight away, right? Often they don't, for a surprisingly dull reason: the reader checks your feed every so often, and until it does, it has no idea you've published anything. WebSub is the fix for that waiting.

## The old way: polling

An RSS or Atom feed is a file listing your latest posts. Feed readers, podcast apps and various services download it on a schedule to see if anything new has appeared. That's called polling.

Polling is like checking your letterbox every half hour. Most of the time it's empty. When a letter does come, you might find it twenty-nine minutes late. And if a thousand services are each checking your feed on their own schedule, your server answers a thousand mostly pointless requests.

Different services poll at different rates. Some check every few minutes, some every hour, some far less. Which means new content shows up in a patchwork of delays.

## The WebSub way: push

WebSub flips it round. Instead of everyone asking "anything new?", the publisher announces "there's something new" and the news is pushed out.

It was originally called PubSubHubbub, a mouthful, and it's now a W3C standard called WebSub. It involves three roles:

- Publisher: your site, which produces the feed.

- Hub: a middleman server that passes updates on.

- Subscriber: a feed reader or service that wants updates.

How it works:

- Your feed includes a link that says which hub it uses.

- A subscriber, such as a feed reader service, tells the hub: "I want to know when this feed changes."

- When you publish, your site pings the hub: "This feed has changed."

- The hub fetches the new version of your feed once, and sends the new content to every subscriber that signed up.

Think of a newspaper delivery. The old way is every reader walking to the newsagent to see if today's paper is out. WebSub is the newsagent posting it through each subscriber's door as soon as it arrives, and the publisher only having to deal with one delivery driver, not thousands of visitors.

## What you gain

- Speed. Subscribers can receive new posts within seconds, rather than whenever their next check is due.

- Less load. The hub fetches your feed once, instead of countless services doing it independently.

- Fresher content in aggregators and services that support it.

- Useful for time-sensitive material: news, alerts, live blogs, announcements, podcasts.

## What it doesn't do

- It doesn't speed up search engines. Google doesn't index pages because you pinged a WebSub hub. Sitemaps and Search Console are the tools for that side. Some search engines have separate instant-notification systems, but that's a different mechanism.

- It doesn't guarantee readers. It only helps services that subscribe.

- It doesn't work with feeds nobody subscribes to. If no subscriber has registered with the hub, the ping goes nowhere.

- It isn't universal. Some feed readers support it, many just poll, and the benefits depend on the services in your audience.

## Do you need it?

Think about who reads your feed.

- If your audience reads by email, social media or search, you can mostly ignore it.

- If you publish news, a podcast or a blog with a loyal feed-reader audience, it's a nice upgrade.

- If you syndicate content to other sites through feeds, faster delivery helps them and you.

- If you run a high-traffic site with a heavy feed, a hub reduces the load of repeated polling.

For many small sites the honest answer is "nice to have". It costs little, so there's no strong argument against it.

## Setting it up

Many platforms handle it for you. WordPress.com feeds include a hub link, and for self-hosted WordPress a plugin can add one. Dedicated services such as Superfeedr act as hubs. If you run your own, you'll need a hub that does the pushing.

To check what your site does:

- Open your feed (usually yoursite.com/feed/) in the browser and view the source.

- Look for a <link rel="hub" href="..."> entry. If it's present, your feed names a hub.

- Check that your site pings that hub when you publish. Some plugins and setups do this; some only declare the hub.

- Publish a test post and see whether a subscribed reader picks it up quickly.

## Related tools

- RSS and Atom: the feed formats themselves.

- Webhooks: a similar "push when something happens" idea for connecting services.

- Sitemaps and indexing APIs: how you tell search engines about new pages.

- Email newsletters and social posting: other ways to push news to readers.

These all solve the same problem: how to get your latest content in front of people without waiting for them to come and look. Feeds with WebSub are the open, no-account version.

## A small caution

Because a hub passes your content to subscribers automatically, anyone subscribing gets the full feed content you've chosen to publish. If your feed contains only excerpts, that's what gets pushed. If it contains the full post, so does the push. Decide that deliberately, especially if you rely on people visiting the site, or if scrapers could copy it.

## Key takeaways

- Feed readers normally poll your feed on a timer, so new posts show up late.

- WebSub lets your site tell a hub about changes, and the hub pushes updates to subscribers.

- It makes delivery faster and reduces repeated requests to your server.

- It doesn't speed up search indexing.

- Check your feed for a hub link, and decide whether feed readers matter to your audience.

## Related reading

- RSS readers: Google Reader's shutdown and what followed

- How domain names work, from typing to loading

- Cloudflare Workers explained simply

Open your own feed and look for a hub line. Is it there?

---

From Ekom (https://ekom.blog/). More: https://ekom.blog/llms.txt
