Pingdom Home

US + international: +1-212-796-6890

SE + international: +46-21-480-0920

Business hours 3 am-11:30 am EST (Mon-Fri).

Pingdom Blog

Royal Pingdom

Ramblings from the Pingdom team about the Internet and web tech

RSS Feed

REST in peace, SOAP

SOAPLooks like the tide of the web API protocol war (if there ever was one) has shifted firmly in REST’s favor while SOAP has been forced back. Web developers have cast their votes, they want RESTful APIs.

Here is the distribution of the different API protocols and styles, comparing the situation in 2008 versus that of 2010, based on ProgrammableWeb’s directory of more than 2,000 web APIs.

SOAP vs REST, 2008 vs 2010
Source: ProgrammableWeb, May 2010.

Interesting enough, REST was already the dominant web API style even two years ago, and it keeps gaining ground.

If that’s not convincing enough, there’s Google to help us. The below graph should make it abundantly clear what the trend is.

Interest over time for REST API versus SOAP API:
Interest in REST API vs SOAP API
Source: Google Insights for Search.

So not only is REST the dominant API style by far, interest in it is growing rapidly, while interest in SOAP is declining.

Many of you probably knew this already, especially if you’re into web development, but it’s always nice to have to actual numbers to go with those assumptions, right?

Want to test your site every minute?








You will get an email with your login information.

Post comment as twitter logo facebook logo
Sort: Newest | Oldest

@hasenj REST is an architecture based on HTTP1.1 which was released in 1999. It's not new, it's just gaining momentum as people become aware of what's available to them.

never trust the stats you did not falsify yourself. Replace the "API" with "web service" and the stats look differently. http://www.google.com/insights/search/#q=soap%20%20%22web%20service%22%2Crest%20%20%20%22web%20service%22&cmpt=q and all the traffic is from India. So what doues this tell us?

I don't know anything about soap or rest, but those who insist SOAP retains its validity in the enterprise are ignoring the fact that SOAP has declined as seen in the trend charts. This shows a wittling down of SOAP in the enterprise which means it is not viable in the long term.

The only thing abundantly clear from these statistics is that more people want to call their APIs REST based than SOAP based. From my experience with APIs listed in the Programmable Web, having the REST tag guarantees absolutely nothing.

How many of those self-proclaimed REST APIs are indeed truly so? I would argue that the vast majority is just tunneling RPC over HTTP without any support for hypermedia and very little support for content negotiation and the idempotent methods of the uniform interface.

As some of the commentators have mentioned before, majority of SOAP is within the enterprise, behind the firewall. This is because the tools used for coding/development automatically generate SOAP services/interface definitions/clients etc.

I'd like to balance the enterprise comments with my experience; REST is a serious approach in SAP enterprise software landscapes, and could have taken the prize in being the most-mentioned integration approach mentioned during the TechEd technical conference this week in Berlin for the world's largest Enterprise software vendor SAP. For example: http://twitter.com/qmacro/statuses/27161703094 Sure, REST won't be used by people just following what their tools dictate, but for people serious about enterprise integration in the long term, which definitely includes the vendors, partners and developers of SAP software, REST is very much alive and growing. dj

First, this story is not about REST (the arch style), but about HTTP (the protocol). Yes, "Straight HTTP" is now taking up the bulk of new API implementations. No, SOAP is not going away, but holding it's own. Finally, as the stats show, SOAP was always trailing HTTP implementations, now the gap is wider.

Interesting. This compares the APIs listed in the ProgrammableWeb, May 2010. Right now it lists 373 APIs using SOAP, out of 2220, roughly 17% REST has 1642, around 74% That is totally making sense, as REST is a style for the web, and SOAP is an RPC in disguise way of doing web services (not all, but the majority), and the majority of those may not be listed in that site. Anyhow, I wanted to make two little points clear here: 1. REST is not simple. Many of the so called REST apis are not RESTful, actually. It has momentum and many people see it as a better way to work on web. 2. That is why the searches are more on the REST side now, because of people trying to learn and understand about it. That means we have much more interest, not necessarily more usage or broader acceptance. So, this article points to a good suggestion: try to learn REST, the true way, as this is something that should be under consideration on new and current jobs. Still, that doesn't mean that SOAP is dead, the charts above need to be read carefully.

Is javascript there for JSON-RPC ? If so, I think its cool that it ever reached 7%, and unfortunate that it's down a point. It can replace SOAP & XML-RPC while living happily alongside REST

I have to echo some of the previous statements. REST is great for publicly consumable services, but for enterprise it's still SOAP, and for many good reasons. And I'm willing to bet there are an order of magnitude more internal enterprise web-services than there are public facing ones. So if you had the REAL numbers I'm guessing SOAP is actually absolutely crushing REST.

They do somewhat different things. REST is definitely easier to work with, faster to implement, and makes moving data around much easier when you're talking about web applications and you own both sites or have a well published interface. SOAP on the other hand, does some things REST doesn't. Create a good Web Service based on SOAP and get the wsdl right (or let your web application server build it), then just point Visual Studio to the WSDL and you nearly instantly have a very good way of talking between a desktop application and a back end server. The same holds true for several other programming environments. I use both. I'd expect there to be more REST based stuff because there's more need for communication within web applications between the client side javascript and the back end data. That doesn't mean SOAP isn't powerful. There are far more cars made then tractor trailers -- but you can't really have an economy without big trucks.

SOAP is not intended for hackers or cool web 2.0 startups It's for hairy enterprise applications and pointy haired bosses who consume the typical marketing bullshit as measurement of industry standards and best practices.

Exactly what does "JavaScript" mean?

One big major place where SOAP is still used is enterprise. By default if you create a Web Service Project in Visual Studio, it uses SOAP internally. I am not sure but for using REST you need to use WCF which is again something devs would find difficult if you never used legacy web service development model in .NET. So people working in corporate sectors use only which is provided by .NET/Visual Studio. I bet many would not have even heard the name "REST". Proof - my experience. My last application was SOAP since that was the ".NET way" at that time

Agree with Carson, internal SLAs are completely different and drive the use of data contracts. SOAP isn't going anywhere, and REST isn't a viable replacement for it on the enterprise.

The title is a little misleading given that SOAP is still very much alive. It is certainly true that for publicly accessible APIs its use has declined but when it comes to private APIs SOAP is still the primary choice.

Completely agree with Joseph that SOAP cannot die off fast enough. Unfortunately, 15% is still a pretty big chunk of the pie. Maybe adding ", please" to the end of the title of this post might help.

SOAP can not die off fast enough.

So when will you update your API to use REST?

@David: Knew someone would ask... ;) It's coming.

Trackbacks

  1. [...] har ett intressant inlägg om hur REST APIer sopar mattan med SOAP. Visst finns det tillfällen där SOAP passar bäst, men de är inte många. Enkelheten med REST [...]

  2. [...] and are easy to serve up with the same software used for regular web pages. In May of 2010, 74% of web APIs used REST as their [...]

The 10 most iPad-friendly countries in the world

iPadDo you live in a country that loves Apple’s iPad? Most of us probably think we do, but we wanted to be able to tell you for sure. So even though we have written about the iPad many times before, it’s now time for us to tackle this hotly contested topic again.

Read on to find out, which countries are the most iPad-friendly.

Perhaps you live in one of them.

Read more

vector graphics

Display resolutions are increasing every year, something that’s being taken to its extreme with the recent “retina display” trend that came with the latest iPad. The jump in onscreen pixels is massive, and such displays are soon bound to make their way into regular laptops and desktop displays, perhaps as soon as this year.

This development will have a profound effect on the size of the graphics resources necessary for websites, which ultimately will make websites bigger, more bloated and slower to download. That is, if we don’t change tactics.

Read more

Top 10 Facebook winners and losers (countries)

Facebook likeThe juggernaut that is Facebook is quickly approaching 1 billion users, so the social network is growing at a rapid pace overall.

But if we look at some of the latest figures available, it would seem that Zuckerberg’s creation is not gaining users in every corner of the world.

In fact, in one country, Facebook has lost 16% of its users over the last six months, the equivalent of over 200,000 users. But in another country, Facebook has gained almost 17 million users over the same period.

What countries are we talking about, you ask? Read on and we’ll tell you.

Read more

UbuntuDevelopers who want a portable computer to code on, which is thin, light, sleek and yet powerful, may now be getting another option in an ultrabook from Dell. What makes the “Sputnik” ultrabook different is that it runs Ubuntu 12.04 Linux and it’s tailor-made for developers.

Every Friday we bring you a collection of links to places on the web that we find particularly newsworthy, interesting, entertaining, and topical. We try to focus on some particular area or topic each week, but in general we will cover Internet, web development, networking, performance, security, and other geeky topics.

Read more

A day in the life of Pingdom – join us May 15

A day in the life of Pingdom

“Photograph what is close to you. Share it with the world!“ That’s one of the headlines on Aday.org, a global project that will attempt to document what goes around the world in one day.

This all takes place on Tuesday May 15, 2012, and Pingdom will be participating.

Read more