Architecting Highly Scalable ECommerce Apps using FullStack JS: Macy's Story

Preview:

Citation preview

Architecting Highly Scalable Ecommerce Mobile Web on Heroku Using FullStack JS

 Esther Patel  API Manager,  Macys.com  Esther.patel@macys.com  

How Macys Does it!

 Karthik Balasubramanian  Mobile Dev Manager,  Macys.com  Karthik.Balasubramanian@macys.com

 Sam Sharaf  Heroku Architect,  Heroku  sam@heroku.com  

1.  Session overview and introduction (Sam)

2.  The power of APIs in fueling ideas and innovation (Esther)

3.  Technical background and the impact Heroku had on mobile web (Karthik)

4.  Using Full Stack JS on Heroku to provide engaging experiences for customers (Karthik)

5.  How Heroku is makes life easy – Configuration management, Add-ons etc. (Karthik)

6.  Driving innovation – 200 Apps deployed and counting (Karthik)

7.  Future vision (Sam/Karthik)

Session Overview

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.

Performance at Scale Mobile First Experience and Mobile Responsive

Scalability with stability

Key Challenges

Idea to App

Platform ?

API ?

Technology Stack ?

Social login

Faster checkout

PDP Experience

In-Store Experience

Browse Product

Navigation

Macys API – Esther Patel

History & Evolution Macy's API

Catalog Web Services

Mobile Web Services

Introduction of

API Mgmt

Macy’s API

Macy’s API  Domains

Catalog

Customer

Order

Promotion

Registry

Store

Media

Macy’s API Fueling Innovation

Macy’s API developer.macys.com developer.bloomingdales.com

Macy’s API

 Cal Poly  Hackathons

Mobile Web – Karthik Balasubramanian

Improve performance Enable mobile-specific experiences & interactions

Optimize the “Path to Product”

Macys Mobile Specific Project Goals

Macys Mobile system interaction and integrated Heroku flow

Heroku P2P (2.0) Mobile API API

manager

Macy’s Mobile Platform

Macy’s Data Center

Web service layer

Services Platform

Home, Splash, Browse, PDP and

Bag

http

From Mobile setup to deployment

Develop Build Test Setup

Build/CI

 Client

•  Html5 (Semantic, more powerful websites)

•  Schema.org (standard SEO markup)

•  jQuery (DOM manipulation and traversal)

•  Lo-dash (Javascript utility library)

•  Requirejs (Javascript file and module loader)

•  Backbone.js (Javascript MVP library)

•  Handlebars.js (Semantic templating)

•  SASS/Compass (CSS extension language)

•  Foundation (Responsive front-end framework)

 Server / Build

•  Node.js (Fast, scalable network applications)

•  Hapi (Rich, configuration based server framework)

•  Grunt (Build system)

Macys Mobile - Full Stack JS  Technology stack

Impact of Heroku and Full Stack JS on Mobile Performance

0.00

2.00

4.00

6.00

8.00

10.00

12.00

14.00

16.00

18.00

Home CatSplash CatBrowse PDPstandard PDPmaster

7.85

9.43

13.26

16.15

11.55 11.03

5.26

3.30

3.84 4.40

1.0 vs. 2.0 Average Page Load Times

MEW1.0

MEW2.0

•  Average PageLoad is 52% faster •  Average OnLoad is 90% faster •  Average 95th Percentile OnLoad is

83% faster •  Home Page load times are

increased

•  Easy deployments with git

•  Scale independently and on-demand

•  Configuration with environment variables

•  One-off dynos for easy testing

•  Request distribution

•  Heroku Add-ons

•  Metrics, monitoring and alerts

•  Log management

•  Application performance management

•  Expedited SSL

•  Heroku Postgres & many more…

Deploys, Config Management, Add-ons, etc.

•  Macys Mobile Web

•  Experimentation/Segmentation Platform

•  Macys Backstage

•  mx.macys.com

•  Content (Creative) Engineering Platform

•  Componentized Multi-variate Apps

•  Polling Services

•  Mock Services

•  Sonarcode Coverage Apps

200 Apps and counting Macys innovation using Heroku

Future Vision – Where we go from here ?

Q & A

Share Your Feedback, and Win a GoPro!

3 Earn a GoPro prize entry for each completed survey

Tap the bell to take a survey 2Enroll in a session 1