RSSCloud Vs. PubSubHubbub: Why The Fat Pings Win

Comment

Editor’s note: With all of the debate lately between RSSCloud versus PubSubHubbub, we wanted to hear from a developer who could actually tell us which one might be better and why. The following guest post is written by Josh Fraser, the co-founder of EventVue, who is an active contributor to PubSubHubbub in his free time.  He has contributed several client libraries for PubSubHubbub including a WordPress plugin. Guess which side of the debate he falls on.

In the past few months, a lot of attention has been given to the rise of the real-time web.  The problem is that the web wasn’t designed with real-time in mind.  There is a huge need for the tech community to get behind new protocols that will power this fundamental shift in how web applications work.  Today I want to take a look at two of the leading protocols that enable real-time notifications on the web.  While there are older protocols that enable real-time notifications like XEP-0060, PubSubHubbub (PuSH) and rssCloud are two new protocols which show a lot of promise of gaining adoption.

Both PuSH and rssCloud address a fundamental flaw in the way web applications work today.  Currently, getting updates on the web requires constant polling.  Subscribers are forced to act like nagging children asking, “Are we there yet?”  Subscribers must constantly ping the publisher to ask if there are new updates even if the answer is “no” 99% of the time.  This is terribly inefficient, wastes resources, and makes it incredibly hard to find new content in as soon as it appears.  Both protocols flip the current model on its head so that updates are event driven rather than request driven.  By that I mean that both protocols eliminate the need for polling by essentially telling subscribers, “Don’t ask us if there’s anything new.  We’ll tell you.”

Dave Winer deserves the credit for coming up with the idea long before anyone else.  In fact, the <cloud> element was added to the RSS 2.0 specification in 2001, but has only recently been revived (largely in response to the interest in PuSH).  rssCloud made major progress this week with the announcement that WordPress was adding rssCloud support for all 7.5 million blogs on WordPress.com. In contrast, PuSH is currently enabled for well over 100 million feeds with adopters including Friendfeed, Blogger, Google Reader, LiveJournal, Google Alerts and FeedBurner. I expect to see many more services adopt these new protocols soon.

But if you find yourself confused about how they are different, you’re not alone.

Conceptually, both protocols are very similar.   Both add a simple declaration to a feed that tells a subscriber which hub/cloud has been delegated the responsibility of handling subscriptions.  Both protocols have a centralized hub that notifies subscribers when new content is published.  Both protocols are HTTP based.

The subtle differences in implementation are important to understand, however.  And in my opinion, PuSH is the better protocol for now. There are basically three things that make PuSH a more robust protocol:

First, PuSH doesn’t just tell you that something changed, it actually sends you the new content (also known as a “fat ping.”) This is an important feature that is missing from rssCloud.  Not only do fat pings make integration simpler for subscribers, they also eliminate the danger of inadvertent denial of service attacks as thousands of subscribers respond to the ping notification and request the updated feed at exactly the same time.  This problem is well known in computer science and is often referred to as “the thundering herd problem.”  While this would be relatively simple to fix in rssCloud, it has yet to be addressed.

Second, PuSH allows variable callbacks (custom URL’s for where the notification is sent) which rssCloud does not.  The rssCloud specification states “Notifications are sent to the IP address the request came from. You can not request notification on behalf of another server.”  This is highly limiting since you cannot separate the servers which are handling subscriptions from the servers which are receiving the ping notifications.

Third, PuSH has a more friendly policy for handling unsubscribes.  In rssCloud, every feed is automatically unsubscribed after 25 hours.  In PuSH, there is an explicit unsubscribe function with the option to automatically unsubscribe after a given amount of time.  Again, this small detail matters a lot when you’re operating at scale.  With rssCloud, RSS readers will be responsible for resubscribing millions of feeds every night – which is far less efficient than sending subscribe/unsubscribe requests only when something changes.

This isn’t to say that there aren’t benefits to rssCloud.  It is far easier to implement an RSS cloud than it is to implement a PuSH hub.  By design, PuSH hubs are not simple to implement.

There are other small differences, but these are the issues that matter most.  Everything else boils down to semantics.

I want to address a couple of misconceptions that are floating around about both protocols.  For example, many people think that rssCloud is simply about building a distributed alternative to Twitter.  This is largely due to Dave Winer’s stated goal for rssCloud to create “a loosely-coupled Twitter-like network of people and 140-character status messages.”  While that is certainly an interesting use-case, it promotes a very narrow view of the protocol and what it enables.  I think rssCloud has far more potential than Dave gives it credit for.

The biggest misconception about PuSH is that it is somehow owned and controlled by Google.  This simply isn’t true.  Not only are there plenty of independent developers like me working on PuSH, there are also other PuSH hubs like SuperFeedr which aren’t controlled by Google. Brett Slatkin points out:

Our spec development process is completely transparent. You can see every code check-in since August 5th 2008. All discussion is on the public mailing list (there is no Google-internal one). The whole point of this spec is to be open, decentralized, and not in control of any company.

Overall, I believe that both PubSubHubbub and rssCloud represent a huge step forward for the web. While I personally believe that PuSH is a better choice, competition is always good and will make both protocols stronger.

(Photo credit: Flickr/Libertinus)

More TechCrunch

Warren Buffett’s Berkshire Hathaway cut its Apple holding by around half, to $84.2 billion, according to an SEC filing. While Apple remains the firm’s largest stock holding by far, Buffett…

Warren Buffet’s Berkshire Hathaway sells half its Apple stock

A fireside chat between Jensen Huang and Mark Zuckerberg at SIGGRAPH 2024 took some unexpected turns. What started as a conversation about the capabilities of Nvidia GPUs and Zuckerberg’s vision…

Zuckerberg and Jensen show off their friendship, while an AI necklace covets yours

We spoke to Harness CEO and founder Jyoti Bansal about his previous company, which Cisco bought for $3.7 billion in 2017.

When a big company comes after a hot startup, it’s not a slam dunk decision to sell

Dojo is Tesla’s custom-built supercomputer that’s designed to train its “Full Self-Driving” neural networks.

Tesla Dojo: Elon Musk’s big plan to build an AI supercomputer, explained

Featured Article

Trade My Spin is building a business around used Peloton equipment

Trade My Spin has pieced together a logistics network capable of offering same or next day delivery in most major cities in the continental U.S.

Trade My Spin is building a business around used Peloton equipment

Featured Article

Meet the founder who built and sold a $600M enterprise software startup from Sri Lanka

Sanjiva Weerawarana co-founded WSO2 in 2005, recently selling it for more than $600M. He sometimes drives for Uber, too.

Meet the founder who built and sold a $600M enterprise software startup from Sri Lanka

Investors are assisting startup founders earlier than ever in an effort to help them bridge the first climate tech valley of death.

Why Bill Gates’ Breakthrough Energy and other investors are scouring universities for founders

While both the DSA and DMA aim to achieve distinct things, they are best understood as a joint response to Big Tech’s market power.

DSA vs. DMA: How Europe’s twin digital regulations are hitting Big Tech

Featured Article

How the theft of 40M UK voter register records was entirely preventable

A scathing rebuke by the U.K. data protection watchdog reveals what led to the compromise of tens of millions of U.K. voters’ information.

How the theft of 40M UK voter register records was entirely preventable

Self-driving technology company Aurora Innovation was hoping to raise hundreds of millions in additional capital as it races toward a driverless commercial launch by the end of 2024. The company, which…

Self-driving truck startup Aurora Innovation raises $483M in share sale ahead of commercial launch

The U.S. Federal Trade Commission and the Justice Department are suing TikTok and ByteDance, TikTok’s parent company, with violating the Children’s Online Privacy Protection Act (COPPA). The law requires digital…

FTC and Justice Department sue TikTok over alleged child privacy violations

Welcome to Startups Weekly — your weekly recap of everything you can’t miss from the world of startups.  This week we are looking at acquisitions of small startups, two new…

Acquiring AI talent wholesale

In a big move, Character.AI co-founder and CEO Noam Shazeer is returning to Google after leaving the company in October 2021 to found the a16z-backed chatbot startup. In his previous…

Character.AI CEO Noam Shazeer returns to Google

The startup developed a two-material system that helps homes self-regulate their internal humidity.

Adept Materials’ dehumidifying paint was inspired by trees and semiconductors

When the developers replied to the July 19 email, Yelp sent a deck of pricing tiers with base pricing starting from $229 per month for a limit of 1,000 API…

Yelp’s lack of transparency around API charges angers developers

Featured Article

Cloud infrastructure revenue approached $80 billion this quarter

The cloud infrastructure market has put the doldrums of 2023 firmly behind it with another big quarter. Revenue continues to grow at a brisk pace, fueled by interest in AI. Synergy Research reports revenue totaled $79 billion for the quarter, up $14.1 billion or 22% from last year. This marked…

Cloud infrastructure revenue approached $80 billion this quarter

The pharma giant won’t say how many patients were affected by its February data breach. A count by TechCrunch confirms that over a million people are affected.

Pharma giant Cencora is alerting millions about its data breach

Payments infrastructure firm Infibeam Avenues has acquired a majority 54% stake in Rediff.com for up to $3 million, a dramatic twist of fate for the 28-year-old business that was the…

Rediff, once an internet pioneer in India, sells majority stake for $3M

The ruling confirmed an earlier decision in April from the High Court of Podgorica which rejected a request to extradite the crypto fugitive to the United States.

Terraform Labs co-founder and crypto fugitive Do Kwon set for extradition to South Korea

A day after Meta CEO Mark Zuckerberg talked about his newest social media experiment Threads reaching “almost” 200 million users on the company’s Q2 2024 earnings call, the platform has…

Meta’s Threads crosses 200 million active users

TechCrunch Disrupt 2024 will be in San Francisco on October 28–30, and we’re already excited! Disrupt brings innovation for every stage of your startup journey, and we could not bring you this…

Connect with Google Cloud, Aerospace, Qualcomm and more at Disrupt 2024

Featured Article

A comprehensive list of 2024 tech layoffs

The tech layoff wave is still going strong in 2024. Following significant workforce reductions in 2022 and 2023, this year has already seen 60,000 job cuts across 254 companies, according to independent layoffs tracker Layoffs.fyi. Companies like Tesla, Amazon, Google, TikTok, Snap and Microsoft have conducted sizable layoffs in the…

A comprehensive list of 2024 tech layoffs

Intel announced it would lay off more than 15% of its staff, or 15,000 employees, in a memo to employees on Thursday. The massive headcount is part of a large…

Intel to lay off 15,000 employees

Following the recent lawsuit filed by the Recording Industry Association of America (RIAA) against music generation startups Udio and Suno, Suno admitted in a court filing on Thursday that it did, in…

AI music startup Suno claims training model on copyrighted music is ‘fair use’

In spite of a drop for the quarter, iPhone remained Apple’s most important category by a wide margin.

iPad sales help bail out Apple amid a continued iPhone slide

Molly Alter wears a lot of hats. She’s a mocumentary filmmaker working on a project about an alternate reality where charades is big business. She’s a caesar salad connoisseur and…

How filming a cappella concerts and dance recitals led Northzone’s newest partner Molly Alter to a career in VC

Microsoft has a long and tangled history with OpenAI, having invested a reported $13 billion in the ChatGPT maker as part of a long-term partnership. As part of the deal,…

Microsoft now lists OpenAI as a competitor in AI and search

The San Jose-based startup raised $60 million in a round that values it lower than the $500 million valuation it garnered in its most recent round, according to multiple sources.

Sequoia-backed Knowde raises Series C at a valuation cut

X (formerly Twitter) can no longer be accessed in the Mac App Store, suggesting that it has been officially delisted.  Searches for both “Twitter” and “X” on Apple’s platform no…

Twitter disappears from Mac App Store

Google Thursday said that it is introducing new Gemini-powered features for Chrome’s desktop version, including Lens for desktop, tab compare for shopping assistance, and natural language integration for search history.…

Google brings Gemini-powered search history and Lens to Chrome desktop