1 / 14

Understanding the Streaming API

Understanding the Streaming API. Quick start guide to RealTime Force. /add_address. @ gwestr Greg Wester. @add_address. in/add_address. Safe Harbor.

dagmar
Download Presentation

Understanding the Streaming API

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Understanding the Streaming API Quick start guide to RealTime Force /add_address @gwestr Greg Wester @add_address in/add_address

  2. Safe Harbor This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions prove 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 statements, including: any projections of earnings, revenues, or other financial items; any statements regarding strategies or plans of management for future operations; any statements concerning new, planned, or upgraded services or developments; statements about current or future economic conditions; and any statements of belief. The risks and uncertainties referred to above include - but are not limited to - risks associated with 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 immature market in which we operate; our relatively limited operating history; our ability to expand, retain, and motivate our employees and manage our growth; risks associated with new releases of our service; and risks associated with selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. are included in our registration statement (on Form S-1) and in other filings with the Securities and Exchange Commission. These documents are available on the SEC Filings section of this Web site. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements. Any unreleased services or features referenced in this or other 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.

  3. Agenda • Introducing RealTime Force • Sample application • Code walk through • Q&A

  4. Streaming 101 • An API that delivers near real time notifications • Uses industry standard technique – “comet” • Does not count against REST/SOAP API daily limit • Available right now for all Salesforce customers

  5. Streaming Surface Area • Notification generated on SObject create or update • One change in the system will notify many users • respects existing CRUD, FLS, sharing rules • Opt in to notifications by creating a SOQL query • administrators create queries for organization

  6. Streaming Terminology • Long polling • Event • Notification • Push Topic • Bayeux Protocol • handshake • subscribe • connect • unsubscribe • disconnect

  7. Streams of JSON

  8. Getting Started • Start with a VisualForce Page • Add a JavascriptCometD client • Asynchronously wait for events • Update the page through the DOM

  9. Demo

  10. Code: Apex Page

  11. Code: CometD JS Client init

  12. Code: CometD JS handler

  13. Q&A • Documentation –http://tinyurl.com/cometsfdc • Code – http://github.com/gwestersfdc/StreamingLab • Streaming Lab on AppExchange soon

  14. Thank you! • Follow me on Twitter - @gwestr

More Related