REST and JSON Win, and Salesforce's Own Doors
Tento obsah zatím není dostupný ve vašem jazyce.
Module 5 of 8 in the chapter The Story of Integration: From CORBA to Today, chapter 17 of the Integration Architect course. Each module stands on its own. Previous: SOAP, WSDL and UDDI · Next: Salesforce Legacy You’ll Still Meet
The question this module answers: REST and JSON became the common language. When did each of Salesforce’s own APIs arrive, and which of them are still growing?
How REST Won, in One Paragraph
Section titled “How REST Won, in One Paragraph”Chapter 3 tells this in full, so here’s the short version. Firewalls were locked down everywhere, except ports 80 and 443, left open for the web (module 2). Developers who wanted servers to talk to each other said: why don’t we host our services on 80 and 443, and look like a browser? REST does just that, using HTTP’s own verbs and status codes. Then it really took off on mobile devices, in the days of 2G and 3G phones, when the size of every message mattered. JSON was lighter than SOAP’s XML (chapter 3 module 4). By the 2010s, REST and JSON were where new APIs were built.
SOAP didn’t go away (module 4). It just stopped being where new work started. And Salesforce’s own APIs tell that story, one door at a time.
Salesforce’s Doors, in Order
Section titled “Salesforce’s Doors, in Order”Salesforce has added doors for over twenty years. Each one arrived for a reason: a kind of caller, or a volume, or a timing the older doors didn’t handle well.
| Door | Arrived | Why it came | Today |
|---|---|---|---|
| SOAP API | 2003 (as “sforce”) | The first way in: integrate other business systems with Salesforce | Supported. login() on it retires in Summer ‘27 |
| Bulk API (1.0) | 2009 (Winter ‘10) | Millions of records, in batches, not one call per record | Supported; new features go to 2.0 |
| REST API | 2011 (Spring ‘11) | Simple calls in JSON over HTTP, for web and mobile | Supported and growing |
| Streaming API (PushTopic, CometD) | 2012 (Spring ‘12) | Be told about a change, instead of asking again and again | Legacy, still supported |
| Platform events | 2017 (Summer ‘17) | Your own business events, published and subscribed | Supported and growing |
| Bulk API 2.0 | 2017 (Winter ‘18) | Bulk, simplified: Salesforce makes the batches | Supported and growing |
| Change Data Capture | 2019 (Spring ‘19) | An event for every record change, without building one | Supported and growing |
| Pub/Sub API | 2022 (Summer ‘22) | One modern API to publish and subscribe to events | Supported and growing |
| GraphQL API | 2022 (Winter ‘23) | Ask for exactly the fields you need, across objects, in one call | Supported and growing |
Every date from 2009 on is the release whose release notes announced the door as generally available, so you can look each one up. The REST API, for example: “The REST API is generally available starting with version 21.0” (Spring ‘11 release notes; The REST API Is Now Transitioning to GA (opens in a new tab), Salesforce Developers Blog, February 2011). The Streaming API ran as a pilot first, and became generally available a release later than many people remember, in Spring ‘12. The first door is older than Salesforce’s online release notes: Salesforce launched its web services API, then called sforce and built on SOAP and WSDL, in June 2003.
The Same Pattern, Inside Salesforce
Section titled “The Same Pattern, Inside Salesforce”Read the table again, and you’ll see the story of the whole chapter repeat inside one platform.
SOAP came first, and REST took over new work. Today, almost every new Salesforce feature has a REST door, and many have only that. But the SOAP API still runs, because older tools still use it. In my 2024 class, one student was still calling it, because their code worked and had for ten years (chapter 8 module 1).
A newer version of the same door takes over the growth. Bulk API 2.0 didn’t remove 1.0. It’s where new features go, and 1.0 stays for the few things only it does (chapter 10 module 3). The same is true for events: the Streaming API, with PushTopic and CometD, is now labelled legacy and still supported, and Salesforce points new event work to the Pub/Sub API (chapter 11).
Asking turned into being told. The early doors were all about asking: a call, an answer. The newer ones are about being told: streaming, then platform events, then Change Data Capture, then the Pub/Sub API. That’s the events era from module 1, inside Salesforce.
Each door has versions, and old versions retire. Salesforce releases a new API version three times a year. Versions 21.0 to 30.0 retired in Summer ‘25, and 31.0 to 40.0 retire in Summer ‘28. Chapter 8 module 1 shows how the number of REST doors grew version by version, and how to find who’s still calling an old one.
Why the Dates Matter to an Architect
Section titled “Why the Dates Matter to an Architect”You don’t need these dates for the exam. You need them for the field guide.
When you walk into an older org, the door an integration uses tells you roughly when it was built, and what it was built to do. A SOAP integration from before 2011 was built when there was no REST door to use. A PushTopic subscriber was built before platform events or the Pub/Sub API existed. Neither was a mistake. But each one is now on an older door, and you can see from the table which way Salesforce went next.
That gives you the question for every one of them: is this still the right door, and if not, what moves it, and when? Module 6 goes through the older mechanisms you’ll still meet, one by one, and module 8 is how to plan the move.
On the Timeline
Section titled “On the Timeline”Salesforce’s layer starts in the services era and fills up in the REST and events eras. Look at the amber bars: Bulk API 1.0 and the Streaming API are still supported, and their newer doors arrived beside them. The amber starts where the newer door arrived. That’s my reading of where the growth moved, not a date Salesforce announced. The one red mark isn’t a door at all. It’s a way of signing in.
Test knowledge. Know which door fits which job: REST for record-at-a-time work and mobile; SOAP for older tools that need it; Bulk API 2.0 for large volumes; platform events and Change Data Capture to be told about changes, subscribed through the Pub/Sub API; GraphQL to fetch exactly the fields you need. The Streaming API with PushTopic and CometD is the older way to subscribe (chapter 8, chapter 11).
What an Architect Decides Here
Section titled “What an Architect Decides Here”- Which door each integration uses, and roughly when it was built.
- Whether that door is still growing, or supported with its growth moved to a newer door.
- Which API version it calls, and when that version retires.
- What it moves to, and in what order, if it’s on an older door.
Explore
Section titled “Explore”- The REST API Is Now Transitioning to GA (opens in a new tab), Salesforce Developers Blog, February 2011 (checked 2026-11-26): the REST API’s arrival, in Salesforce’s words at the time.
- Pub/Sub API and Streaming API comparison (opens in a new tab), Streaming API Developer Guide (checked 2026-11-26): the older and newer ways to subscribe, side by side.
- All the Locked Doors: chapter 8, today’s doors and how to find who’s using an old one.
