ben sterrett - sitecore wars iv: a new way to deliver media - sugcon
TRANSCRIPT
Organized by the Community, for the Community.
SITECORE WARS IV: A NEW HOPE WAY TO DELIVER MEDIA
Ben Sterrett
Organized by the Community, for the Community. 2SUGCON NORTH AMERICA 2015
BEN STERRETT? WHO?
Organized by the Community, for the Community. 3
ABOUT ME
• I went to Clemson University (GO TIGERS)
• I work for Hedgehog Development (GO HEDGEHOGS)
• I love to hack on new technology
• I have three crazy daughters
• I like long walks on the beach
• I like getting caught in rain
• I hate piña coladas
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 4
ABOUT ME
• I have a background in high performance / high throughput computing
• I frequently work with node and RoR in my spare time
• I once broke a window with a baseball and I don’t know if it was on purpose
• One time I told a PM that I would allow him to Photoshop text into his images
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 5SUGCON NORTH AMERICA 2015
UGH, FINE. WHY ARE YOU HERE?
Organized by the Community, for the Community. 6
I LOVE THE INTERNET
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 7
I LOVE THE INTERNET
SUGCON NORTH AMERICA 2015
Pic related: It’s a bunny with a sad.
… and slow internets give me a sad.
Organized by the Community, for the Community. 8SUGCON NORTH AMERICA 2015
YOU HAVEN’T ANSWERED THE QUESTION
Organized by the Community, for the Community. 9SUGCON NORTH AMERICA 2015
I WANT TO TALK ABOUT THE MEDIA LIBRARY
Organized by the Community, for the Community. 10
SITECORE DRIVES CUSTOMER EXPERIENCE
SUGCON NORTH AMERICA 2015
… it says it right up front.
Organized by the Community, for the Community. 11
SITECORE DRIVES CUSTOMER EXPERIENCE
• Groundbreaking Versatility• Statistical Vision Into Your Site• Second-To-None Authorship Experiences• Actionable Metrics to help improve
business
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 12
SITECORE DRIVES CUSTOMER EXPERIENCE
• Sitecore is Un-opinionated• It is a Blank Canvas• It is a web development platform• It is an advice-giving platform• Does not care about how you do UX
SUGCON NORTH AMERICA 2015
… without getting in your way
Organized by the Community, for the Community. 13SUGCON NORTH AMERICA 2015
OF COURSE SITECORE DOESN’T DO UX, HOW COULD IT?
Organized by the Community, for the Community. 14
ANSWER: SPEED
• We are a part of a global community• What works in the US might not work elsewhere• The rest of Sitecore is ready out-of-the-box to
handle a global marketplace• The media library needs to reflect this
SUGCON NORTH AMERICA 2015
…Lightning-fast, neck-breaking speed
Organized by the Community, for the Community. 15SUGCON NORTH AMERICA 2015
WHY ARE WE STILL HOSTING OUR OWN MEDIA?
Organized by the Community, for the Community. 16
HOW MEDIA EXISTS TODAY
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 17
HOW MEDIA EXISTS TODAY
Pros
• Easily curatable content• Securable• Reliable• Keeps DBA salaries high
Cons
• ASHX handlers can be slow• Databases get gigantic and
hugely difficult to maintain• Transformations take up
valuable server time• Web server is busy handling
media, not other web requests• File synchronization can be an
issue for web farm environments
• The web server exists in one place geographically
• Not “cloud friendly”
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 18SUGCON NORTH AMERICA 2015
YES, BEN, THIS IS WHY WE CREATED CONTENT DELIVERY NETWORKS
Organized by the Community, for the Community. 19
CONTENT DELIVERY NETWORKS
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 20
SITECORE ON CDNS
• No out-of-the-box solution• Sitecore CDN Connector Module• Set MediaPrefixUrl to the CDN Url• AWS Elastic Load Balancer + CloudFront
SUGCON NORTH AMERICA 2015
… should be the standard for today
Organized by the Community, for the Community. 21
DOES THIS SOLVE ALL OF OUR CONS?Pros
• Easily curatable content• Securable• Reliable• Keeps DBA salaries high
Cons
• ASHX handlers can be slow• Databases get gigantic and
hugely difficult to maintain• Transformations take up
valuable server time• Web server is busy handling
media, not other web requests• File synchronization can be an
issue for web farm environments
• The web server exists in one place geographically
• Not “cloud friendly”
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 22SUGCON NORTH AMERICA 2015
WHY DON’T WE PUT OUR ASSETS SOMEWHERE THAT SPECIALIZES IN ASSETS?
Organized by the Community, for the Community. 23
PEOPLE ARE DOING THIS ALREADY
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 24
WHERE MY WORK COMES IN
SUGCON NORTH AMERICA 2015
… initial focus is on images
=+
Organized by the Community, for the Community. 25SUGCON NORTH AMERICA 2015
WOAH THERE, COWBOY. IMGIX? S3?
Organized by the Community, for the Community. 26
INTRODUCING IMGIX
• Image Manipulation over HTTP
• CDN• Giant Server Farms• Massive Array of
Transformations
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 27
INTRODUCING S3
• Cloud-Based Storage From Amazon
• Structure Provided by Keys
• Extensive APIs and SDKs
• Can cheaply store large amounts of data
• Not a CDN
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 28SUGCON NORTH AMERICA 2015
OH, OKAY. CONTINUE.
Organized by the Community, for the Community. 29
PARTS OF THE PROCESS
1. Upload media blob data to S3 instead of Sitecore (keeping image item)
2. Extend Field Renderer3. Redirect Media Item requests
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 30SUGCON NORTH AMERICA 2015
STOP, YOU NEED TO SHOW ME THIS NOW.
Organized by the Community, for the Community. 31
DOES THIS SOLVE ALL OF OUR CONS?Pros
• Easily curatable content• Securable• Reliable• Keeps DBA salaries high
Cons
• ASHX handlers can be slow• Databases get gigantic and
hugely difficult to maintain• Transformations take up
valuable server time• Web server is busy handling
media, not other web requests• File synchronization can be an
issue for web farm environments
• The web server exists in one place geographically
• Not cloud friendly
SUGCON NORTH AMERICA 2015
Organized by the Community, for the Community. 32SUGCON NORTH AMERICA 2015
THANK YOU FOR COMINGProof of concept code location
Organized by the Community, for the Community. 33SUGCON NORTH AMERICA 2015
QUESTIONS?