SlideShare a Scribd company logo
Durable Generic Streaming API
Replay events and messages
5 May, 2016
Thames Valley User Group
Looking-Forward Statement
Statement under the Private Securities Litigation Reform Act of 1995: 



This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of
the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking
statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service
availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future
operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use
of our services.
The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our
service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth,
interruptions or delays in our Web hosting, breach of our security measures, the outcome of any litigation, risks associated with completed and any possible
mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our
employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com
products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of
salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most
recent fiscal quarter. These documents and others containing important disclosures are available on the SEC Filings section of the Investor Information
section of our Web site.
Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be
delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available.
Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
Speakers
Peter Chittum
Manager, Developer Evangelism EMEA
@pchittum
Go Social!
@salesforcedevs / #AskForce
@salesforceadmns / #AwesomeAdmin
Salesforce Developers
Salesforce Admins
Salesforce Developers
Salesforce Developers
ButtonClick Admins
Streaming API
• API Based Notification
• Avoid Polling for Updates
• Save Standard API Limits
• Uses Long Polling (Bayeux, CometD)
Streaming API
PushTopic: Data Changes
StreamingChannel: Generic Notif.
• Event: A record has been changed (CRUD)
• Notification: Message sent because event has occurred
• PushTopic: The definition of one event type
Terms
Create PushTopic
​ PushTopic pushTopic = new PushTopic();
​ pushTopic.Name = 'InvoiceStatementUpdates';
​ pushTopic.Query = 'SELECT Id, Name, Status__c, Description__c FROM
Invoice_Statement__c';
​ pushTopic.ApiVersion = 36.0;
​ pushTopic.NotifyForOperationUpdate = true;
​ pushTopic.NotifyForFields = ’Select';
​ insert pushTopic;
Create Generic Channel
Client Channel/Topic Connection
Subscribe to Topic/Channel
Register Streaming Client
Update or Event from Salesforce
Sending Messages to Streaming Channel
​  POST:
​  /sobjects/StreamingChannel/0M624000000001TCAQ/push
​  {"pushEvents" : [
​  {"payload" : "This is my message”}
​  ]
​  }
• Replay Generic Streaming Events (GA)
- Salesforce stores for 24hrs
- Subscribers choose events to retrieve with replay options
Durable Generic Streaming API
Before the Demo
Play along…
http://bit.ly/sf-durable
API Demo
• Replay PushTopic Streaming Events (Beta)
- identical to generic streaming with replay for 24hrs
- subscription channel should include PushTopic
“channel”:“/topic/MyTopicName”
Contact Salesforce to enable this
Pilot Replaying Push Topics (GA Summer 16)
• When subscribing filter down the notifications
/topic/myChannel?Industry='Energy'&ShippingCity='San Francisco'
Filter Subscriptions (GA Summer 16)
• Durable Streaming API (replay messages)
• SOQL Enhancements
• JSON support for Bulk API
• REST API - Friendly URLs
- Make REST requests with fewer API calls
- Access records by traversing object relationships to retrieve,
update, or delete the record
• Wave REST API has gone GA
Other API Enhancements
Streaming api with generic and durable streaming
Trailhead and Release Readiness
bit.ly/sf-release-trail
Join the Conversation!post to: bit.ly/ReleaseReadinessSalesforce with #askforce
Q&A
Thank you!

More Related Content

PDF
Streaming API with Java
PDF
Durable Streaming and Enterprise Messaging
PPTX
Understanding Salesforce Streaming API
PPTX
Salesforce Streaming Api
PPTX
Unleash the Power of Apex Realtime Debugger
PPTX
Fremont Salesforce Community Group - Salesforce Labs Day - October 2019
PPTX
Building BOTS on App Cloud
PDF
Javascript Security and Lightning Locker Service
Streaming API with Java
Durable Streaming and Enterprise Messaging
Understanding Salesforce Streaming API
Salesforce Streaming Api
Unleash the Power of Apex Realtime Debugger
Fremont Salesforce Community Group - Salesforce Labs Day - October 2019
Building BOTS on App Cloud
Javascript Security and Lightning Locker Service

What's hot (16)

PPTX
Real Time Integration with Salesforce Platform Events
PPTX
Building apps faster with lightning and winter '17
PDF
Salesforce Tour Paris - Platform Events - Martin Lezer
PPT
Advanced Platform Series - OAuth and Social Authentication
PPTX
Build Better Communities with Lightning
PPTX
Diving Into Heroku Private Spaces
PDF
Lightning Data Service: Eliminate Your Need to Load Records Through Controllers
PDF
Replicate Salesforce Data in Real Time with Change Data Capture
PPTX
Migrating Visualforce Pages to Lightning
PPTX
Lightning Updates: Summer, Winter & Beyond
PPTX
Salesforce Lightning Web Components - Open Source
PDF
Winter 14 Release Developer Preview
PDF
Building Mobile Apps That Deliver Salesforce to Your Employees
PDF
Dallas user group February 20 2015
PPTX
Embed Customer Support into your Apps with Snap-ins
PPTX
Webinar: Build Apps Customers Love as a Salesforce Developer
Real Time Integration with Salesforce Platform Events
Building apps faster with lightning and winter '17
Salesforce Tour Paris - Platform Events - Martin Lezer
Advanced Platform Series - OAuth and Social Authentication
Build Better Communities with Lightning
Diving Into Heroku Private Spaces
Lightning Data Service: Eliminate Your Need to Load Records Through Controllers
Replicate Salesforce Data in Real Time with Change Data Capture
Migrating Visualforce Pages to Lightning
Lightning Updates: Summer, Winter & Beyond
Salesforce Lightning Web Components - Open Source
Winter 14 Release Developer Preview
Building Mobile Apps That Deliver Salesforce to Your Employees
Dallas user group February 20 2015
Embed Customer Support into your Apps with Snap-ins
Webinar: Build Apps Customers Love as a Salesforce Developer
Ad

Similar to Streaming api with generic and durable streaming (20)

PPTX
Best api features of 2016
PDF
Real-Time Data Feeds Using the Streaming API
PDF
#DF17Recap series: Integrate apps easier with the Salesforce platform
PDF
Just-In-Time Sharing Using Apex
PPT
Chatter - Salesforce.com
PDF
Einstein Analytics for Developers
PPTX
Using Apex for REST Integration
PPTX
Navi Mumbai Salesforce DUG meetup on integration
PDF
Build Your First Real-time App with the Streaming API
PPT
Salesforce Integration
PDF
Gesture Controlled Interactions with Platform Events and IoT Explorer
PDF
Winter '18 開発者向け新機能
PDF
Developing on the Salesforce Platform With Clicks, Not Code
PDF
世界的クラウド企業がコミュニティを育てるために考えていること
PDF
Winter '19 開発者向け新機能
PDF
Summer '17 リリース開発者向け新機能Webinar
PPTX
Forcelandia 2016 Wave App Development
PDF
Integrating High-Velocity External Data in Your Salesforce Application
PPTX
Learn MOAR Winter '20 Developer Community
PPTX
Build custom user interfaces for your Salesforce data with the UI API
Best api features of 2016
Real-Time Data Feeds Using the Streaming API
#DF17Recap series: Integrate apps easier with the Salesforce platform
Just-In-Time Sharing Using Apex
Chatter - Salesforce.com
Einstein Analytics for Developers
Using Apex for REST Integration
Navi Mumbai Salesforce DUG meetup on integration
Build Your First Real-time App with the Streaming API
Salesforce Integration
Gesture Controlled Interactions with Platform Events and IoT Explorer
Winter '18 開発者向け新機能
Developing on the Salesforce Platform With Clicks, Not Code
世界的クラウド企業がコミュニティを育てるために考えていること
Winter '19 開発者向け新機能
Summer '17 リリース開発者向け新機能Webinar
Forcelandia 2016 Wave App Development
Integrating High-Velocity External Data in Your Salesforce Application
Learn MOAR Winter '20 Developer Community
Build custom user interfaces for your Salesforce data with the UI API
Ad

More from Peter Chittum (20)

PPTX
Dreamforce 2013 - Enhancing the Chatter Feed with Topics and Apex
PDF
Winter 21 Developer Highlights for Salesforce
PPTX
LMS Lightning Message Service
PPTX
Apply the Salesforce CLI To Everyday Problems
PDF
If You Can Write a Salesforce Formula, You Can Use the Command Line
PDF
If you can write a Salesforce Formula you can use the command line
PDF
Do Not Fear the Command Line
PPTX
Don't Fear the Command Line
PPTX
The Power of Salesforce APIs World Tour Edition
PPTX
Maths Week - About Computers, for Kids
PDF
Spring '16 Release Overview - Bilbao Feb 2016
PDF
Salesforce Platform Encryption Developer Strategy
PDF
All Aboard the Lightning Components Action Service
PDF
Boxcars and Cabooses: When One More XHR Is Too Much
PDF
Dreamforce 15 - Platform Encryption for Developers
PPTX
Platform Encryption World Tour Admin Zone
PDF
Salesforce Lightning Components and App Builder EMEA World Tour 2015
PPTX
Building Applications on the Salesforce1 Platform for Imperial College London
PDF
Elevate london dec 2014.pptx
PPTX
AngularJS App In Two Weeks
Dreamforce 2013 - Enhancing the Chatter Feed with Topics and Apex
Winter 21 Developer Highlights for Salesforce
LMS Lightning Message Service
Apply the Salesforce CLI To Everyday Problems
If You Can Write a Salesforce Formula, You Can Use the Command Line
If you can write a Salesforce Formula you can use the command line
Do Not Fear the Command Line
Don't Fear the Command Line
The Power of Salesforce APIs World Tour Edition
Maths Week - About Computers, for Kids
Spring '16 Release Overview - Bilbao Feb 2016
Salesforce Platform Encryption Developer Strategy
All Aboard the Lightning Components Action Service
Boxcars and Cabooses: When One More XHR Is Too Much
Dreamforce 15 - Platform Encryption for Developers
Platform Encryption World Tour Admin Zone
Salesforce Lightning Components and App Builder EMEA World Tour 2015
Building Applications on the Salesforce1 Platform for Imperial College London
Elevate london dec 2014.pptx
AngularJS App In Two Weeks

Recently uploaded (20)

PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
Big Data Technologies - Introduction.pptx
PPT
Teaching material agriculture food technology
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Spectroscopy.pptx food analysis technology
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
Assigned Numbers - 2025 - Bluetooth® Document
Big Data Technologies - Introduction.pptx
Teaching material agriculture food technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
The AUB Centre for AI in Media Proposal.docx
Empathic Computing: Creating Shared Understanding
Spectroscopy.pptx food analysis technology
MIND Revenue Release Quarter 2 2025 Press Release
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
A comparative analysis of optical character recognition models for extracting...
Advanced methodologies resolving dimensionality complications for autism neur...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Unlocking AI with Model Context Protocol (MCP)
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Review of recent advances in non-invasive hemoglobin estimation
Mobile App Security Testing_ A Comprehensive Guide.pdf
Network Security Unit 5.pdf for BCA BBA.
Dropbox Q2 2025 Financial Results & Investor Presentation
Reach Out and Touch Someone: Haptics and Empathic Computing

Streaming api with generic and durable streaming

  • 1. Durable Generic Streaming API Replay events and messages 5 May, 2016 Thames Valley User Group
  • 2. Looking-Forward Statement Statement under the Private Securities Litigation Reform Act of 1995: 
 
 This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services. The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of any litigation, risks associated with completed and any possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site. Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
  • 3. Speakers Peter Chittum Manager, Developer Evangelism EMEA @pchittum
  • 4. Go Social! @salesforcedevs / #AskForce @salesforceadmns / #AwesomeAdmin Salesforce Developers Salesforce Admins Salesforce Developers Salesforce Developers ButtonClick Admins
  • 6. • API Based Notification • Avoid Polling for Updates • Save Standard API Limits • Uses Long Polling (Bayeux, CometD) Streaming API
  • 8. • Event: A record has been changed (CRUD) • Notification: Message sent because event has occurred • PushTopic: The definition of one event type Terms
  • 9. Create PushTopic ​ PushTopic pushTopic = new PushTopic(); ​ pushTopic.Name = 'InvoiceStatementUpdates'; ​ pushTopic.Query = 'SELECT Id, Name, Status__c, Description__c FROM Invoice_Statement__c'; ​ pushTopic.ApiVersion = 36.0; ​ pushTopic.NotifyForOperationUpdate = true; ​ pushTopic.NotifyForFields = ’Select'; ​ insert pushTopic;
  • 11. Client Channel/Topic Connection Subscribe to Topic/Channel Register Streaming Client Update or Event from Salesforce
  • 12. Sending Messages to Streaming Channel ​  POST: ​  /sobjects/StreamingChannel/0M624000000001TCAQ/push ​  {"pushEvents" : [ ​  {"payload" : "This is my message”} ​  ] ​  }
  • 13. • Replay Generic Streaming Events (GA) - Salesforce stores for 24hrs - Subscribers choose events to retrieve with replay options Durable Generic Streaming API
  • 14. Before the Demo Play along… http://bit.ly/sf-durable
  • 16. • Replay PushTopic Streaming Events (Beta) - identical to generic streaming with replay for 24hrs - subscription channel should include PushTopic “channel”:“/topic/MyTopicName” Contact Salesforce to enable this Pilot Replaying Push Topics (GA Summer 16)
  • 17. • When subscribing filter down the notifications /topic/myChannel?Industry='Energy'&ShippingCity='San Francisco' Filter Subscriptions (GA Summer 16)
  • 18. • Durable Streaming API (replay messages) • SOQL Enhancements • JSON support for Bulk API • REST API - Friendly URLs - Make REST requests with fewer API calls - Access records by traversing object relationships to retrieve, update, or delete the record • Wave REST API has gone GA Other API Enhancements
  • 20. Trailhead and Release Readiness bit.ly/sf-release-trail
  • 21. Join the Conversation!post to: bit.ly/ReleaseReadinessSalesforce with #askforce
  • 22. Q&A