ben sterrett - sitecore wars iv: a new way to deliver media - sugcon

33
Organized by the Community, for the Community. SITECORE WARS IV: A NEW HOPE WAY TO DELIVER MEDIA Ben Sterrett

Upload: sugcon

Post on 16-Apr-2017

261 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community.

SITECORE WARS IV: A NEW HOPE WAY TO DELIVER MEDIA

Ben Sterrett

Page 2: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community. 2SUGCON NORTH AMERICA 2015

BEN STERRETT? WHO?

Page 3: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

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

Page 4: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

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

Page 5: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community. 5SUGCON NORTH AMERICA 2015

UGH, FINE. WHY ARE YOU HERE?

Page 6: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community. 6

I LOVE THE INTERNET

SUGCON NORTH AMERICA 2015

Page 7: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

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.

Page 8: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community. 8SUGCON NORTH AMERICA 2015

YOU HAVEN’T ANSWERED THE QUESTION

Page 9: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community. 9SUGCON NORTH AMERICA 2015

I WANT TO TALK ABOUT THE MEDIA LIBRARY

Page 10: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community. 10

SITECORE DRIVES CUSTOMER EXPERIENCE

SUGCON NORTH AMERICA 2015

… it says it right up front.

Page 11: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

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

Page 12: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

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

Page 13: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community. 13SUGCON NORTH AMERICA 2015

OF COURSE SITECORE DOESN’T DO UX, HOW COULD IT?

Page 14: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

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

Page 15: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community. 15SUGCON NORTH AMERICA 2015

WHY ARE WE STILL HOSTING OUR OWN MEDIA?

Page 16: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community. 16

HOW MEDIA EXISTS TODAY

SUGCON NORTH AMERICA 2015

Page 17: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

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

Page 18: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community. 18SUGCON NORTH AMERICA 2015

YES, BEN, THIS IS WHY WE CREATED CONTENT DELIVERY NETWORKS

Page 19: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community. 19

CONTENT DELIVERY NETWORKS

SUGCON NORTH AMERICA 2015

Page 20: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

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

Page 21: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

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

Page 22: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community. 22SUGCON NORTH AMERICA 2015

WHY DON’T WE PUT OUR ASSETS SOMEWHERE THAT SPECIALIZES IN ASSETS?

Page 23: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community. 23

PEOPLE ARE DOING THIS ALREADY

SUGCON NORTH AMERICA 2015

Page 24: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community. 24

WHERE MY WORK COMES IN

SUGCON NORTH AMERICA 2015

… initial focus is on images

=+

Page 25: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community. 25SUGCON NORTH AMERICA 2015

WOAH THERE, COWBOY. IMGIX? S3?

Page 26: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

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

Page 27: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

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

Page 28: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community. 28SUGCON NORTH AMERICA 2015

OH, OKAY. CONTINUE.

Page 29: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

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

Page 30: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community. 30SUGCON NORTH AMERICA 2015

STOP, YOU NEED TO SHOW ME THIS NOW.

Page 31: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

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

Page 32: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community. 32SUGCON NORTH AMERICA 2015

THANK YOU FOR COMINGProof of concept code location

Page 33: Ben Sterrett - Sitecore Wars IV: A new way to deliver media - SUGCON

Organized by the Community, for the Community. 33SUGCON NORTH AMERICA 2015

QUESTIONS?