SlideShare ist ein Scribd-Unternehmen logo
1 von 44
Downloaden Sie, um offline zu lesen
How Open Source Software
Embiggens salesforce.com
What We Use, And What We Contribute To
Ian Varley, salesforce.com, Principal Member of Technical Staff
@thefutureian
Safe Harbor
Safe 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 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.
Who am I?
Ian Varley
3.5 years at salesforce.com
Core Database Team, Big Data Team
@thefutureian
Show of hands ...
● Use OSS?
● Contribute to OSS?
● Write their own OSS projects?
Developers at salesforce.com
spend all day in open source
software.
salesforce.com engineers work on an OSS stack ...
▪ Linux (Ubuntu, RHL)
▪ Java
▪ Eclipse (+ IntelliJ, vim, emacs)
▪ Guava, Apache Commons, more
▪ JUnit, Mockito, Selenium
▪ Git (+ p4)
▪ Memcached
What’s so great about open
source software?
A rising tide ...

… lifts all boats.
It’s a win-win situation.
▪Everyone gets more out than they put in
▪You have control over your own destiny
▪You can attract the industry’s best minds
● The smartest devs seem to gravitate towards open source
● So if you raised your hand before, give yourself a pat on the back.
So,
what do we use?
Servlet Container
Servlet containers handle routing HTTP requests to code.
▪Started w/ commercial product
▪Feature: “steal” work from overloaded servers
▪(Code name: Hamburglar)
But! Show stopper bug, and no way to fix it ...
Solution: Jetty
▪http://www.eclipse.org/jetty/

▪Year-long migration process
▪Tricky with 10+ years of legacy code!
▪Now running Jetty (almost) everywhere.
Search Indexing
Indexer takes text (e.g. chatter posts, etc.), makes it searchable.
▪Original implementation: Lucene (forked)
▪But, scale keeps increasing!
▪Bottleneck: single-writer QFS on a SAN
▪Needed solution to scale horizontally
Solution: Solr
▪Horizontally scalable, REST interface
▪Query / index on same host, no more SAN
▪New features, core library is (latest) Lucene
We’ve also contributed some small fixes, and contracted a big fix to allow
handling indexers with many cores (10K+!).
Contributing is a
win / win.
Message Queue
Decouple calling code from its execution.
▪Originally: 10-15 devs had rolled their own
▪Centralized on a transactional queue (Vijay)
▪Commercial product, deeply coupled to DB
▪OK until: the “600” error. 3 years of back and forth.
▪Eventually rewrote our layer to work around it!
▪Scale problems: 50 -> 500 queues
▪CPU contention at head of queue
Solution: QPID
▪Apache project, good reputation
▪Separate tier from the DB
▪Ran into bugs …
▪… and fixed them.
▪40% memory savings on client (QPID-4873; thanks Helen Kwong & Brian Toal)
Open source lets us bring our experts
to help everybody.
Build: Ant
Build tools help get you from “code written” to “code running”.
▪Used Apache Ant for years
▪But, as the # of devs has grown …
▪scale and maintainability problems.
Solution: Maven
▪Moving core build to Apache Maven
▪Goal is a more modular and decoupled build structure
▪Declarative dependencies FTW
▪OSGi: Apache Felix
Deployment: Home Grown
Deployment tools let you get code out to servers.
▪Salesforce.com has always used home-grown tool, “ReleaseRunner”
▪Required for tight security model (no passwordless ssh, root)
▪But as we scale out, manual methods aren’t cutting it
Solution: Puppet, Salt, Razor, Rundeck
Get code out to lots of servers with little manual involvement.
▪Razor: automated machine inventory
▪Puppet: deployment of bits and configuration
▪Salt, Rundeck: service orchestration for restarts
All of this still very much WIP; nobody else does it w/ this level of security
Batch Processing
▪Salesforce == RDBMS
▪No great approach for batch processing
▪Especially on sets that don’t fit in memory
▪Working outside relational model very hard
Solution: Hadoop
Map/Reduce: ship computations to your data instead vice versa
▪Walter Macklem (Platform CTO); Codename: Gridforce
▪+HDFS (distributed file storage)
▪+Pig (a higher level language)
▪Features: recommendations, search relevance, machine learning
▪Log export pilot ...
(Ask your CSR/CSM/AM to
get nominated for the pilot!)
Big Data
Relational databases are powerful ...
▪But, started looking at cost model
▪Lower than average (multi-tenancy)
▪Model is so rich, prohibitive for really large data
▪RDBMS has strict scalability limits per object
▪Hard to scale out because, runs on big iron
What if we could store vast numbers of records, but with fewer capabilities
and assumptions? Scale horizontally, but with the same safety guarantees?
Big Data: HBase
Horizontally scalable NoSQL database.
▪Fewer capabilities (no joins, transactions)
▪Scales by adding machines
▪Fault tolerant (on HDFS)
▪Features? Initially, audit & compliance, event tracking
▪Eventually, a lot more: really big objects
▪Got a lot of field history? Join the FHR retention pilot! (Talk to you CSM)
This is my team, so I could talk for hours. But go see Lars Hofhansl’s talk!
OK, that’s cool. But, does Salesforce
contribute new projects?
Historically: no, not many.
But, this is changing.
Aura: UI Framework
Basis for new generation of Salesforce UI
▪High performance client-server architecture
▪Event-driven, MVC architecture
▪https://github.com/forcedotcom/aura
Phoenix: a SQL Skin for HBase
“We put the SQL back in NoSQL”
▪A proper subset of SQL
▪Familiar interface, scalable storage
▪Unlike Hive, uses the HBase client API
▪Blazing fast; queries in milliseconds
▪Tons of contribution since we opened it
▪https://github.com/forcedotcom/phoenix
Mobile SDK
All SDK dev for Salesforce done in open source
▪https://github.com/forcedotcom/SalesforceMobileSDK-iOS
▪https://github.com/forcedotcom/SalesforceMobileSDK-Android
▪Also: heavy use of Apache Cordova, to blend web & native components
Lots more!
So far, we’ve only been talking about Salesforce core.
▪Many salesforce.com companies use tons of Open Source:
•Heroku

- https://github.com/heroku

•Radian6,

Data.com, ExactTarget - you name it, we probably use it somewhere

▪And lots of open source stuff on the platform, too!
•http://boards.developerforce.com/t5/Salesforce-Labs-Open-Source/bd-p/labs

•You

can search github for Apex & Salesforce
Salesforce.com isn’t just an OSS user.
We’re an OSS pusher.
Committers on dozens of big projects
Salesforce.com actively supports a lot of people who primarily
contribute to open source projects (not just a side thing).
▪ Postgres: Tom Lane (Project Lead)
▪ Ruby: Matz (Project Lead)
▪ Maven: Jason Van Zyl (Project Lead)
▪ HBase: Lars Hofhansl (PMC, release manager); Jesse Yates
▪ Phoenix: James Taylor (Project Lead)
▪ Aura: Doug Chasman (Project Lead)
▪ Pig: Prashant Kommeredi
Is Open Source right for everything?
No.
It’s great for ...
▪Core components
▪Databases
▪Common algorithms
▪Reusable UI libraries & abstractions
And any case where “the source isn’t the secret sauce”.
It’s not great for ...
▪Code entangled with your business model
▪Code you didn’t write with a plan to open up
▪Software that’s “all things to all people”
▪Getting other people to do your work
But, these are kind of anti-patterns anyway, right … ?
Most return on investment is from
open sourcing “the interesting bits”,
rather than the whole stack.
And embracing the Open Source
approach, particularly in the last 3
years, has been a sea change.
In conclusion ...
In contributing, we all gain.
Look for more OSS involvement from salesforce.com
in the future!
Ian Varley
@thefutureian
We want to hear
from YOU!
Please take a moment to complete our
session survey
Surveys can be found in the “My Agenda”
portion of the Dreamforce app
Open Source at Salesforce.com

Weitere ähnliche Inhalte

Andere mochten auch

IVS CTO Night and Day Recap - #CTONight 2016 Winter
IVS CTO Night and Day Recap - #CTONight 2016 WinterIVS CTO Night and Day Recap - #CTONight 2016 Winter
IVS CTO Night and Day Recap - #CTONight 2016 WinterEiji Shinohara
 
Search Solutions on AWS
Search Solutions on AWSSearch Solutions on AWS
Search Solutions on AWSEiji Shinohara
 
Building apps faster with lightning and winter '17
Building apps faster with lightning and winter '17Building apps faster with lightning and winter '17
Building apps faster with lightning and winter '17Salesforce Developers
 
Building a Single Page App with Lightning Components
Building a Single Page App with Lightning ComponentsBuilding a Single Page App with Lightning Components
Building a Single Page App with Lightning ComponentsSalesforce Developers
 
Battle of the giants: Apache Solr vs ElasticSearch
Battle of the giants: Apache Solr vs ElasticSearchBattle of the giants: Apache Solr vs ElasticSearch
Battle of the giants: Apache Solr vs ElasticSearchRafał Kuć
 
Building a real time, solr-powered recommendation engine
Building a real time, solr-powered recommendation engineBuilding a real time, solr-powered recommendation engine
Building a real time, solr-powered recommendation engineTrey Grainger
 

Andere mochten auch (6)

IVS CTO Night and Day Recap - #CTONight 2016 Winter
IVS CTO Night and Day Recap - #CTONight 2016 WinterIVS CTO Night and Day Recap - #CTONight 2016 Winter
IVS CTO Night and Day Recap - #CTONight 2016 Winter
 
Search Solutions on AWS
Search Solutions on AWSSearch Solutions on AWS
Search Solutions on AWS
 
Building apps faster with lightning and winter '17
Building apps faster with lightning and winter '17Building apps faster with lightning and winter '17
Building apps faster with lightning and winter '17
 
Building a Single Page App with Lightning Components
Building a Single Page App with Lightning ComponentsBuilding a Single Page App with Lightning Components
Building a Single Page App with Lightning Components
 
Battle of the giants: Apache Solr vs ElasticSearch
Battle of the giants: Apache Solr vs ElasticSearchBattle of the giants: Apache Solr vs ElasticSearch
Battle of the giants: Apache Solr vs ElasticSearch
 
Building a real time, solr-powered recommendation engine
Building a real time, solr-powered recommendation engineBuilding a real time, solr-powered recommendation engine
Building a real time, solr-powered recommendation engine
 

Ähnlich wie Open Source at Salesforce.com

How Open Source Embiggens Salesforce.com
How Open Source Embiggens Salesforce.comHow Open Source Embiggens Salesforce.com
How Open Source Embiggens Salesforce.comSalesforce Engineering
 
Continuous Integration - Software development lifecycle for Force.com projects
Continuous Integration - Software development lifecycle for Force.com projectsContinuous Integration - Software development lifecycle for Force.com projects
Continuous Integration - Software development lifecycle for Force.com projectsAldo Fernandez
 
Best Practices for Creating Scalable Apps with Heroku
Best Practices for Creating Scalable Apps with HerokuBest Practices for Creating Scalable Apps with Heroku
Best Practices for Creating Scalable Apps with HerokuSalesforce Developers
 
Mds cloud saturday 2015 how to heroku
Mds cloud saturday 2015 how to herokuMds cloud saturday 2015 how to heroku
Mds cloud saturday 2015 how to herokuDavid Scruggs
 
High Scale Relational Storage at Salesforce Built with Apache HBase and Apach...
High Scale Relational Storage at Salesforce Built with Apache HBase and Apach...High Scale Relational Storage at Salesforce Built with Apache HBase and Apach...
High Scale Relational Storage at Salesforce Built with Apache HBase and Apach...Salesforce Engineering
 
Puppet Camp San Francisco 2015: Puppet Adoption in a Mature Environment
Puppet Camp San Francisco 2015: Puppet Adoption in a Mature EnvironmentPuppet Camp San Francisco 2015: Puppet Adoption in a Mature Environment
Puppet Camp San Francisco 2015: Puppet Adoption in a Mature EnvironmentPuppet
 
Continuous Integration and Testing with Branch Orgs
Continuous Integration and Testing with Branch OrgsContinuous Integration and Testing with Branch Orgs
Continuous Integration and Testing with Branch OrgsSalesforce Developers
 
Lightning Workshop London
Lightning Workshop LondonLightning Workshop London
Lightning Workshop LondonKeir Bowden
 
06 august meetup - enterprise integration architecture
06   august meetup - enterprise integration architecture06   august meetup - enterprise integration architecture
06 august meetup - enterprise integration architectureAldo Fernandez
 
Designing custom REST and SOAP interfaces on Force.com
Designing custom REST and SOAP interfaces on Force.comDesigning custom REST and SOAP interfaces on Force.com
Designing custom REST and SOAP interfaces on Force.comSteven Herod
 
Heroku for team collaboration
Heroku for team collaborationHeroku for team collaboration
Heroku for team collaborationJohn Stevenson
 
Heroku for-team-collaboration
Heroku for-team-collaborationHeroku for-team-collaboration
Heroku for-team-collaborationJohn Stevenson
 
Intro to Salesforce Lightning for Admins
Intro to Salesforce Lightning for Admins Intro to Salesforce Lightning for Admins
Intro to Salesforce Lightning for Admins Desynit
 
Code live with kevin o'hara lwc oss dashboard
Code live with kevin o'hara   lwc oss dashboardCode live with kevin o'hara   lwc oss dashboard
Code live with kevin o'hara lwc oss dashboardJackGuo20
 
Best Practices for Team Development in a Single Org
Best Practices for Team Development in a Single OrgBest Practices for Team Development in a Single Org
Best Practices for Team Development in a Single OrgSalesforce Developers
 
Enterprise-grade UI with open source Lightning Web Components
Enterprise-grade UI with open source Lightning Web ComponentsEnterprise-grade UI with open source Lightning Web Components
Enterprise-grade UI with open source Lightning Web ComponentsSalesforce Developers
 
Salesforce DX for admins - Sydney world tour
Salesforce DX for admins - Sydney world tourSalesforce DX for admins - Sydney world tour
Salesforce DX for admins - Sydney world tourTechforce Services
 
Integrating Salesforce with Microsoft Office through Add-ins
Integrating Salesforce with Microsoft Office through Add-insIntegrating Salesforce with Microsoft Office through Add-ins
Integrating Salesforce with Microsoft Office through Add-insSalesforce Developers
 
Access External Data in Real-time with Lightning Connect
Access External Data in Real-time with Lightning ConnectAccess External Data in Real-time with Lightning Connect
Access External Data in Real-time with Lightning ConnectSalesforce Developers
 

Ähnlich wie Open Source at Salesforce.com (20)

How Open Source Embiggens Salesforce.com
How Open Source Embiggens Salesforce.comHow Open Source Embiggens Salesforce.com
How Open Source Embiggens Salesforce.com
 
Continuous Integration - Software development lifecycle for Force.com projects
Continuous Integration - Software development lifecycle for Force.com projectsContinuous Integration - Software development lifecycle for Force.com projects
Continuous Integration - Software development lifecycle for Force.com projects
 
Best Practices for Creating Scalable Apps with Heroku
Best Practices for Creating Scalable Apps with HerokuBest Practices for Creating Scalable Apps with Heroku
Best Practices for Creating Scalable Apps with Heroku
 
Mds cloud saturday 2015 how to heroku
Mds cloud saturday 2015 how to herokuMds cloud saturday 2015 how to heroku
Mds cloud saturday 2015 how to heroku
 
High Scale Relational Storage at Salesforce Built with Apache HBase and Apach...
High Scale Relational Storage at Salesforce Built with Apache HBase and Apach...High Scale Relational Storage at Salesforce Built with Apache HBase and Apach...
High Scale Relational Storage at Salesforce Built with Apache HBase and Apach...
 
Puppet Camp San Francisco 2015: Puppet Adoption in a Mature Environment
Puppet Camp San Francisco 2015: Puppet Adoption in a Mature EnvironmentPuppet Camp San Francisco 2015: Puppet Adoption in a Mature Environment
Puppet Camp San Francisco 2015: Puppet Adoption in a Mature Environment
 
Continuous Integration and Testing with Branch Orgs
Continuous Integration and Testing with Branch OrgsContinuous Integration and Testing with Branch Orgs
Continuous Integration and Testing with Branch Orgs
 
Lightning Workshop London
Lightning Workshop LondonLightning Workshop London
Lightning Workshop London
 
06 august meetup - enterprise integration architecture
06   august meetup - enterprise integration architecture06   august meetup - enterprise integration architecture
06 august meetup - enterprise integration architecture
 
Designing custom REST and SOAP interfaces on Force.com
Designing custom REST and SOAP interfaces on Force.comDesigning custom REST and SOAP interfaces on Force.com
Designing custom REST and SOAP interfaces on Force.com
 
Heroku for team collaboration
Heroku for team collaborationHeroku for team collaboration
Heroku for team collaboration
 
Heroku for-team-collaboration
Heroku for-team-collaborationHeroku for-team-collaboration
Heroku for-team-collaboration
 
Intro to Salesforce Lightning for Admins
Intro to Salesforce Lightning for Admins Intro to Salesforce Lightning for Admins
Intro to Salesforce Lightning for Admins
 
Code live with kevin o'hara lwc oss dashboard
Code live with kevin o'hara   lwc oss dashboardCode live with kevin o'hara   lwc oss dashboard
Code live with kevin o'hara lwc oss dashboard
 
Best Practices for Team Development in a Single Org
Best Practices for Team Development in a Single OrgBest Practices for Team Development in a Single Org
Best Practices for Team Development in a Single Org
 
Enterprise-grade UI with open source Lightning Web Components
Enterprise-grade UI with open source Lightning Web ComponentsEnterprise-grade UI with open source Lightning Web Components
Enterprise-grade UI with open source Lightning Web Components
 
Salesforce DX for admins - Sydney world tour
Salesforce DX for admins - Sydney world tourSalesforce DX for admins - Sydney world tour
Salesforce DX for admins - Sydney world tour
 
Integrating Salesforce with Microsoft Office through Add-ins
Integrating Salesforce with Microsoft Office through Add-insIntegrating Salesforce with Microsoft Office through Add-ins
Integrating Salesforce with Microsoft Office through Add-ins
 
Access External Data in Real-time with Lightning Connect
Access External Data in Real-time with Lightning ConnectAccess External Data in Real-time with Lightning Connect
Access External Data in Real-time with Lightning Connect
 
Get Started with Salesforce DX!
Get Started with Salesforce DX!Get Started with Salesforce DX!
Get Started with Salesforce DX!
 

Mehr von Salesforce Developers

Sample Gallery: Reference Code and Best Practices for Salesforce Developers
Sample Gallery: Reference Code and Best Practices for Salesforce DevelopersSample Gallery: Reference Code and Best Practices for Salesforce Developers
Sample Gallery: Reference Code and Best Practices for Salesforce DevelopersSalesforce Developers
 
Maximizing Salesforce Lightning Experience and Lightning Component Performance
Maximizing Salesforce Lightning Experience and Lightning Component PerformanceMaximizing Salesforce Lightning Experience and Lightning Component Performance
Maximizing Salesforce Lightning Experience and Lightning Component PerformanceSalesforce Developers
 
Local development with Open Source Base Components
Local development with Open Source Base ComponentsLocal development with Open Source Base Components
Local development with Open Source Base ComponentsSalesforce Developers
 
TrailheaDX India : Developer Highlights
TrailheaDX India : Developer HighlightsTrailheaDX India : Developer Highlights
TrailheaDX India : Developer HighlightsSalesforce Developers
 
Why developers shouldn’t miss TrailheaDX India
Why developers shouldn’t miss TrailheaDX IndiaWhy developers shouldn’t miss TrailheaDX India
Why developers shouldn’t miss TrailheaDX IndiaSalesforce Developers
 
CodeLive: Build Lightning Web Components faster with Local Development
CodeLive: Build Lightning Web Components faster with Local DevelopmentCodeLive: Build Lightning Web Components faster with Local Development
CodeLive: Build Lightning Web Components faster with Local DevelopmentSalesforce Developers
 
CodeLive: Converting Aura Components to Lightning Web Components
CodeLive: Converting Aura Components to Lightning Web ComponentsCodeLive: Converting Aura Components to Lightning Web Components
CodeLive: Converting Aura Components to Lightning Web ComponentsSalesforce Developers
 
TrailheaDX and Summer '19: Developer Highlights
TrailheaDX and Summer '19: Developer HighlightsTrailheaDX and Summer '19: Developer Highlights
TrailheaDX and Summer '19: Developer HighlightsSalesforce Developers
 
Lightning web components - Episode 4 : Security and Testing
Lightning web components  - Episode 4 : Security and TestingLightning web components  - Episode 4 : Security and Testing
Lightning web components - Episode 4 : Security and TestingSalesforce Developers
 
LWC Episode 3- Component Communication and Aura Interoperability
LWC Episode 3- Component Communication and Aura InteroperabilityLWC Episode 3- Component Communication and Aura Interoperability
LWC Episode 3- Component Communication and Aura InteroperabilitySalesforce Developers
 
Lightning web components episode 2- work with salesforce data
Lightning web components   episode 2- work with salesforce dataLightning web components   episode 2- work with salesforce data
Lightning web components episode 2- work with salesforce dataSalesforce Developers
 
Lightning web components - Episode 1 - An Introduction
Lightning web components - Episode 1 - An IntroductionLightning web components - Episode 1 - An Introduction
Lightning web components - Episode 1 - An IntroductionSalesforce Developers
 
Migrating CPQ to Advanced Calculator and JSQCP
Migrating CPQ to Advanced Calculator and JSQCPMigrating CPQ to Advanced Calculator and JSQCP
Migrating CPQ to Advanced Calculator and JSQCPSalesforce Developers
 
Scale with Large Data Volumes and Big Objects in Salesforce
Scale with Large Data Volumes and Big Objects in SalesforceScale with Large Data Volumes and Big Objects in Salesforce
Scale with Large Data Volumes and Big Objects in SalesforceSalesforce Developers
 
Replicate Salesforce Data in Real Time with Change Data Capture
Replicate Salesforce Data in Real Time with Change Data CaptureReplicate Salesforce Data in Real Time with Change Data Capture
Replicate Salesforce Data in Real Time with Change Data CaptureSalesforce Developers
 
Modern Development with Salesforce DX
Modern Development with Salesforce DXModern Development with Salesforce DX
Modern Development with Salesforce DXSalesforce Developers
 
Integrate CMS Content Into Lightning Communities with CMS Connect
Integrate CMS Content Into Lightning Communities with CMS ConnectIntegrate CMS Content Into Lightning Communities with CMS Connect
Integrate CMS Content Into Lightning Communities with CMS ConnectSalesforce Developers
 

Mehr von Salesforce Developers (20)

Sample Gallery: Reference Code and Best Practices for Salesforce Developers
Sample Gallery: Reference Code and Best Practices for Salesforce DevelopersSample Gallery: Reference Code and Best Practices for Salesforce Developers
Sample Gallery: Reference Code and Best Practices for Salesforce Developers
 
Maximizing Salesforce Lightning Experience and Lightning Component Performance
Maximizing Salesforce Lightning Experience and Lightning Component PerformanceMaximizing Salesforce Lightning Experience and Lightning Component Performance
Maximizing Salesforce Lightning Experience and Lightning Component Performance
 
Local development with Open Source Base Components
Local development with Open Source Base ComponentsLocal development with Open Source Base Components
Local development with Open Source Base Components
 
TrailheaDX India : Developer Highlights
TrailheaDX India : Developer HighlightsTrailheaDX India : Developer Highlights
TrailheaDX India : Developer Highlights
 
Why developers shouldn’t miss TrailheaDX India
Why developers shouldn’t miss TrailheaDX IndiaWhy developers shouldn’t miss TrailheaDX India
Why developers shouldn’t miss TrailheaDX India
 
CodeLive: Build Lightning Web Components faster with Local Development
CodeLive: Build Lightning Web Components faster with Local DevelopmentCodeLive: Build Lightning Web Components faster with Local Development
CodeLive: Build Lightning Web Components faster with Local Development
 
CodeLive: Converting Aura Components to Lightning Web Components
CodeLive: Converting Aura Components to Lightning Web ComponentsCodeLive: Converting Aura Components to Lightning Web Components
CodeLive: Converting Aura Components to Lightning Web Components
 
TrailheaDX and Summer '19: Developer Highlights
TrailheaDX and Summer '19: Developer HighlightsTrailheaDX and Summer '19: Developer Highlights
TrailheaDX and Summer '19: Developer Highlights
 
Live coding with LWC
Live coding with LWCLive coding with LWC
Live coding with LWC
 
Lightning web components - Episode 4 : Security and Testing
Lightning web components  - Episode 4 : Security and TestingLightning web components  - Episode 4 : Security and Testing
Lightning web components - Episode 4 : Security and Testing
 
LWC Episode 3- Component Communication and Aura Interoperability
LWC Episode 3- Component Communication and Aura InteroperabilityLWC Episode 3- Component Communication and Aura Interoperability
LWC Episode 3- Component Communication and Aura Interoperability
 
Lightning web components episode 2- work with salesforce data
Lightning web components   episode 2- work with salesforce dataLightning web components   episode 2- work with salesforce data
Lightning web components episode 2- work with salesforce data
 
Lightning web components - Episode 1 - An Introduction
Lightning web components - Episode 1 - An IntroductionLightning web components - Episode 1 - An Introduction
Lightning web components - Episode 1 - An Introduction
 
Migrating CPQ to Advanced Calculator and JSQCP
Migrating CPQ to Advanced Calculator and JSQCPMigrating CPQ to Advanced Calculator and JSQCP
Migrating CPQ to Advanced Calculator and JSQCP
 
Scale with Large Data Volumes and Big Objects in Salesforce
Scale with Large Data Volumes and Big Objects in SalesforceScale with Large Data Volumes and Big Objects in Salesforce
Scale with Large Data Volumes and Big Objects in Salesforce
 
Replicate Salesforce Data in Real Time with Change Data Capture
Replicate Salesforce Data in Real Time with Change Data CaptureReplicate Salesforce Data in Real Time with Change Data Capture
Replicate Salesforce Data in Real Time with Change Data Capture
 
Modern Development with Salesforce DX
Modern Development with Salesforce DXModern Development with Salesforce DX
Modern Development with Salesforce DX
 
Get Into Lightning Flow Development
Get Into Lightning Flow DevelopmentGet Into Lightning Flow Development
Get Into Lightning Flow Development
 
Integrate CMS Content Into Lightning Communities with CMS Connect
Integrate CMS Content Into Lightning Communities with CMS ConnectIntegrate CMS Content Into Lightning Communities with CMS Connect
Integrate CMS Content Into Lightning Communities with CMS Connect
 
Introduction to MuleSoft
Introduction to MuleSoftIntroduction to MuleSoft
Introduction to MuleSoft
 

Kürzlich hochgeladen

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 

Kürzlich hochgeladen (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Open Source at Salesforce.com

  • 1. How Open Source Software Embiggens salesforce.com What We Use, And What We Contribute To Ian Varley, salesforce.com, Principal Member of Technical Staff @thefutureian
  • 2. Safe Harbor Safe 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 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. Who am I? Ian Varley 3.5 years at salesforce.com Core Database Team, Big Data Team @thefutureian
  • 4. Show of hands ... ● Use OSS? ● Contribute to OSS? ● Write their own OSS projects?
  • 5. Developers at salesforce.com spend all day in open source software.
  • 6. salesforce.com engineers work on an OSS stack ... ▪ Linux (Ubuntu, RHL) ▪ Java ▪ Eclipse (+ IntelliJ, vim, emacs) ▪ Guava, Apache Commons, more ▪ JUnit, Mockito, Selenium ▪ Git (+ p4) ▪ Memcached
  • 7. What’s so great about open source software?
  • 8. A rising tide ... … lifts all boats.
  • 9. It’s a win-win situation. ▪Everyone gets more out than they put in ▪You have control over your own destiny ▪You can attract the industry’s best minds ● The smartest devs seem to gravitate towards open source ● So if you raised your hand before, give yourself a pat on the back.
  • 11. Servlet Container Servlet containers handle routing HTTP requests to code. ▪Started w/ commercial product ▪Feature: “steal” work from overloaded servers ▪(Code name: Hamburglar) But! Show stopper bug, and no way to fix it ...
  • 12. Solution: Jetty ▪http://www.eclipse.org/jetty/ ▪Year-long migration process ▪Tricky with 10+ years of legacy code! ▪Now running Jetty (almost) everywhere.
  • 13. Search Indexing Indexer takes text (e.g. chatter posts, etc.), makes it searchable. ▪Original implementation: Lucene (forked) ▪But, scale keeps increasing! ▪Bottleneck: single-writer QFS on a SAN ▪Needed solution to scale horizontally
  • 14. Solution: Solr ▪Horizontally scalable, REST interface ▪Query / index on same host, no more SAN ▪New features, core library is (latest) Lucene We’ve also contributed some small fixes, and contracted a big fix to allow handling indexers with many cores (10K+!).
  • 16. Message Queue Decouple calling code from its execution. ▪Originally: 10-15 devs had rolled their own ▪Centralized on a transactional queue (Vijay) ▪Commercial product, deeply coupled to DB ▪OK until: the “600” error. 3 years of back and forth. ▪Eventually rewrote our layer to work around it! ▪Scale problems: 50 -> 500 queues ▪CPU contention at head of queue
  • 17. Solution: QPID ▪Apache project, good reputation ▪Separate tier from the DB ▪Ran into bugs … ▪… and fixed them. ▪40% memory savings on client (QPID-4873; thanks Helen Kwong & Brian Toal)
  • 18. Open source lets us bring our experts to help everybody.
  • 19. Build: Ant Build tools help get you from “code written” to “code running”. ▪Used Apache Ant for years ▪But, as the # of devs has grown … ▪scale and maintainability problems.
  • 20. Solution: Maven ▪Moving core build to Apache Maven ▪Goal is a more modular and decoupled build structure ▪Declarative dependencies FTW ▪OSGi: Apache Felix
  • 21. Deployment: Home Grown Deployment tools let you get code out to servers. ▪Salesforce.com has always used home-grown tool, “ReleaseRunner” ▪Required for tight security model (no passwordless ssh, root) ▪But as we scale out, manual methods aren’t cutting it
  • 22. Solution: Puppet, Salt, Razor, Rundeck Get code out to lots of servers with little manual involvement. ▪Razor: automated machine inventory ▪Puppet: deployment of bits and configuration ▪Salt, Rundeck: service orchestration for restarts All of this still very much WIP; nobody else does it w/ this level of security
  • 23. Batch Processing ▪Salesforce == RDBMS ▪No great approach for batch processing ▪Especially on sets that don’t fit in memory ▪Working outside relational model very hard
  • 24. Solution: Hadoop Map/Reduce: ship computations to your data instead vice versa ▪Walter Macklem (Platform CTO); Codename: Gridforce ▪+HDFS (distributed file storage) ▪+Pig (a higher level language) ▪Features: recommendations, search relevance, machine learning ▪Log export pilot ... (Ask your CSR/CSM/AM to get nominated for the pilot!)
  • 25. Big Data Relational databases are powerful ... ▪But, started looking at cost model ▪Lower than average (multi-tenancy) ▪Model is so rich, prohibitive for really large data ▪RDBMS has strict scalability limits per object ▪Hard to scale out because, runs on big iron What if we could store vast numbers of records, but with fewer capabilities and assumptions? Scale horizontally, but with the same safety guarantees?
  • 26. Big Data: HBase Horizontally scalable NoSQL database. ▪Fewer capabilities (no joins, transactions) ▪Scales by adding machines ▪Fault tolerant (on HDFS) ▪Features? Initially, audit & compliance, event tracking ▪Eventually, a lot more: really big objects ▪Got a lot of field history? Join the FHR retention pilot! (Talk to you CSM) This is my team, so I could talk for hours. But go see Lars Hofhansl’s talk!
  • 27. OK, that’s cool. But, does Salesforce contribute new projects?
  • 28. Historically: no, not many. But, this is changing.
  • 29. Aura: UI Framework Basis for new generation of Salesforce UI ▪High performance client-server architecture ▪Event-driven, MVC architecture ▪https://github.com/forcedotcom/aura
  • 30. Phoenix: a SQL Skin for HBase “We put the SQL back in NoSQL” ▪A proper subset of SQL ▪Familiar interface, scalable storage ▪Unlike Hive, uses the HBase client API ▪Blazing fast; queries in milliseconds ▪Tons of contribution since we opened it ▪https://github.com/forcedotcom/phoenix
  • 31. Mobile SDK All SDK dev for Salesforce done in open source ▪https://github.com/forcedotcom/SalesforceMobileSDK-iOS ▪https://github.com/forcedotcom/SalesforceMobileSDK-Android ▪Also: heavy use of Apache Cordova, to blend web & native components
  • 32. Lots more! So far, we’ve only been talking about Salesforce core. ▪Many salesforce.com companies use tons of Open Source: •Heroku - https://github.com/heroku •Radian6, Data.com, ExactTarget - you name it, we probably use it somewhere ▪And lots of open source stuff on the platform, too! •http://boards.developerforce.com/t5/Salesforce-Labs-Open-Source/bd-p/labs •You can search github for Apex & Salesforce
  • 33. Salesforce.com isn’t just an OSS user. We’re an OSS pusher.
  • 34. Committers on dozens of big projects Salesforce.com actively supports a lot of people who primarily contribute to open source projects (not just a side thing). ▪ Postgres: Tom Lane (Project Lead) ▪ Ruby: Matz (Project Lead) ▪ Maven: Jason Van Zyl (Project Lead) ▪ HBase: Lars Hofhansl (PMC, release manager); Jesse Yates ▪ Phoenix: James Taylor (Project Lead) ▪ Aura: Doug Chasman (Project Lead) ▪ Pig: Prashant Kommeredi
  • 35. Is Open Source right for everything? No.
  • 36. It’s great for ... ▪Core components ▪Databases ▪Common algorithms ▪Reusable UI libraries & abstractions And any case where “the source isn’t the secret sauce”.
  • 37. It’s not great for ... ▪Code entangled with your business model ▪Code you didn’t write with a plan to open up ▪Software that’s “all things to all people” ▪Getting other people to do your work But, these are kind of anti-patterns anyway, right … ?
  • 38. Most return on investment is from open sourcing “the interesting bits”, rather than the whole stack.
  • 39. And embracing the Open Source approach, particularly in the last 3 years, has been a sea change.
  • 41. In contributing, we all gain. Look for more OSS involvement from salesforce.com in the future!
  • 43. We want to hear from YOU! Please take a moment to complete our session survey Surveys can be found in the “My Agenda” portion of the Dreamforce app