Connect Your Clouds with


Published on

Dreamforce 2011

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Connect Your Clouds with

  1. 1. Connect Your Clouds withForce.comDeveloper TrackJeff Douglas, Senior Technical Consultant, Appirio
  2. 2. Safe HarborSafe harbor 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 suchuncertainties materialize or if any of the assumptions proves incorrect, the results of, inc. could differmaterially from the results expressed or implied by the forward-looking statements we make. All statements other thanstatements 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 ofmanagement for future operations, statements of belief, any statements concerning new, planned, or upgraded servicesor 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 anddelivering new functionality for our service, new products and services, our new business model, our past operatinglosses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breachof our security measures, the outcome of intellectual property and other litigation, risks associated with possible mergersand 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 customerdeployment, our limited history reselling products, and utilization and selling to larger enterprisecustomers. Further information on potential factors that could affect the financial results of, inc. is includedin our annual report on Form 10-Q for the most recent fiscal quarter ended July 31, 2011. This documents and otherscontaining important disclosures are available on the SEC Filings section of the Investor Information section of our Website.Any unreleased services or features referenced in this or other presentations, press releases or public statements are notcurrently available and may not be delivered on time or at all. Customers who purchase our services should make thepurchase decisions based upon features that are currently available., inc. assumes no obligation anddoes not intend to update these forward-looking statements.
  3. 3. Jeff DouglasSenior Technical Consultant Appirio Developer Evangelist CloudSpokes Co-Author “Salesforce Handbook” @jeffdonthemic
  4. 4. What to Walk Away With  Solid understanding of integration options and patterns.  Strategies for connecting various cloud platforms with  Best practices with integration options.  A deep love and appreciation for the platform.
  5. 5. Agenda  Cloud to Cloud Integration Patterns – Inbound – Outbound – Hybrid  Toolkits  “RMAforce” Demo – Microsoft Azure – Google App Engine – Amazon AWS – Heroku
  6. 6. Integration Patterns with
  7. 7. Inbound Integration Options for  APIs – SOAP API, Bulk API, REST API, Chatter REST (Pilot)  Apex Web Services – SOAP, REST (Pilot)  Apex Inbound Email Services  Toolkits – Google App Engine (Java & Python), Ruby, PHP, Perl, .NET and Azure
  8. 8. Outbound Integration Options for  Apex Callouts  Toolkits  Outbound Message  Apex Outbound Email Services
  9. 9. Apex Callouts – Don’t Forget!  Governor Limits!! – 10 callouts per transaction – 3MB payload maximum – 120 timeout for all callouts  Dreaded “You have uncommitted work pending” error  Callouts from Triggers must be made asychronously - @future(callout=true)  The joy of writing test coverage for callouts  Invoke WSDL/SOAP or REST services. Be careful parsing returned JSON data. Parser is not yet native.
  10. 10. Toolkits for Services
  11. 11. Toolkits for Platforms/Languages
  12. 12. Demo Application – “RMAforce”
  13. 13. Demo Application – “RMAforce”
  14. 14. Demo Application – “RMAforce”
  15. 15. Demo Application – “RMAforce”
  16. 16. Demo Application – “RMAforce”
  17. 17. ERD
  18. 18. Demo - Microsoft Azure  Inbound integration from SQL Azure  Java app loads Sales Order data using the Bulk API
  19. 19. Recap - Microsoft Azure  Inbound integration from SQL Azure using Java and the Bulk API Best Practices  CVS column names should be same as target org  Consolidate data into SQL Views for easy querying  Schedule the app (.jar file) to run periodically on a server with email notifications for failures.  Monitor imports (success & failures) in Salesforce
  20. 20. Demo - Google App Engine  Inbound integration using the Google App Engine Toolkit for (Java) to process customer RMAs.
  21. 21. Recap - Google App Engine  Inbound integration using the Google App Engine Toolkit for (Java) Best Practices  Use the “GAE” version of the Toolkit for App Engine.  Use the precompiled “Partner” jar  URL fetch service limited to 5 seconds so streamline queries and returned results  Cache connection for improved performance
  22. 22. Demo - Amazon AWS  Outbound integration to Amazon S3 using the Amazon Web Services toolkit.  Customer service rep approves RMA, creates PDF and stores in Amazon S3.
  23. 23. Recap - Amazon AWS  Outbound integration to Amazon S3 using the Amazon Web Services toolkit. Best Practices  Setup different S3 buckets for sandbox and production  Watch bucket permissions  Guard your API keys!
  24. 24. Demo - Heroku  Platform/lauguage integration with Ruby and Heroku  Customer checks the status of their RMA on mobile device.  Ruby on Rails application using the REST API.
  25. 25. Recap - Heroku  Inbound integration with Heroku.  Ruby on Rails application using the REST API. Best Practices  Use OmniAuth for authorization  Use HTTPS for OAuth2 callback  Use the Heroku SSL add-on for quick & easy encryption  Treat access tokens like passwords!!
  26. 26. Recap – What Did We See?  Strategies for integration depending on use case.  Toolkits for different services and language  How do develop integrations regardless of platform and language.  How to use different APIs depending on application purpose.  Best practices for technologies, toolkits and platforms
  27. 27. Additional Resources  Github code repo  Cloud to Cloud Integrations with  Loading Large Data Sets with the Bulk API  Google App Engine Toolkit for  Toolkit for Amazon Web Services  OmniAuth
  28. 28. Questions?
  29. 29. But wait, the DevZone has more!Open Source Lab Discover new & interesting open projectsLightning Forum Drop in for a quick blast of knowledgeTech Demos See and learn the latest from the expertsCode Consultations Sign up for 1:1 sessions at the Welcome Desk @forcedotcom
  30. 30. How Could Dreamforce Be Even Better? Tell Us! Every session survey you submit is a chance to win an iPad 2! Watch your inbox at the end of each day for an email from our survey partner, Alliance Tech. Click on the personalized link to be directed to the survey page for the sessions you attended.