SlideShare a Scribd company logo
LeapfrogintoServerless
A Deloitte-AmtrakCaseStudy
S E R V E R L E S S C O N F 2 0 1 7
@GaryArora
Cloud Solutions Architect
Deloitte
1. Share our serverless journey with Amtrak
2. How can traditional enterprises leapfrog into serverless?
3. Collect some geek swag!
Objectives
Containersareso2016!*
*Conditions Apply :-)
4 | Copyright © 2017 Deloitte Development LLC. All rights reserved.
Road to serverless solutions
Paradigm shift in computing evolution
Focus on business logic
Stackabstraction
Serverless
Unit of scale: Functions
• Deploy in milliseconds
• Live for seconds
Containerization
Unit of scale: Application
• Deploy in seconds
• Live for minutes/hours
Virtual Machines
Unit of scale: Machine
• Deploy in minutes
• Live for week
Physical Machines
Unit of scale: Physical servers
• Deploy in months
• Live for years
Server based
ModernizingLegacyApplications
withServerless
Carries more riders than all
airlines combined!
DC Boston
85,700 Passengers/Day
30 million annual riders
Serves 500 destinations over
21K miles of routes
Top Speed: 150 mph
$3.2 Billion in Revenue
71%
Online
Challenges
• Unpredictable and slow
response time: Ranging from
few seconds – 1 hour
• Analytics & BI dashboard
refreshed data every 24 hours –
causing reports to be stale by 1
day
• Existing systems are expensive
to support and extend with new
features
• No single source of truth
• High level of data redundancy
• Lack of integration &
consistency
• Non standardized data storage
and data access protocols
Solution Approach
Serverless
Integrated within AWS ecosystem
Widest prod implementation & support
Native mobile support & caching
1
2
Relational DB: High familiarity = Fastest GTM
NoSQL: Flexible schema = future proof
Select DB Design
Select DB
Datastore centered
There’s a lot more than Lambda in
AWS Serverless stack
API Gateway:
Builds, deploys, and
manages micro
services.
Lambda
Runs code in response to events
Integratedwithother
AWScomponents
Dynamo DB
Managed NoSQL
Database
Redshift
Managed, petabyte-
scale data
warehouse
SNS
Managed push
notification for
multiple platforms
Kinesis
Real-time data
streaming and
analytics
S3
Durable, highly-
scalable cloud
storage
Solution Architecture
Redshift
ServiceTickets
Ticket Process
QUERY
Target
Systems
Automated
Notifications
Operations
Trade
Partners
AWS Cloud Native ServicesSource
Systems
Tickets
Booking
Tickets
Migration
Glacier: Archive
Ref Data
JBoss
Booking
Tickets
S3: Overflow
>400KB
Booking Process
Data Pipeline: Archive
Segments
1 HOURETL
ETL
Booking
Data Pipeline: Reporting
S3: Flatfile
S3: Consumer Archive
DynamoDB
S3: Reporting
Ticket Service Process
20K/min
7 DAYS
XML
Data
Integration
Enterprise
Services
Lambda Kinesis Lambda
Lambda Kinesis Lambda
Lambda Kinesis Lambda
CloudWatch
Monitoring,
Auditing, and
Logging Audit Log Lambda: Notification SNSAppDynamics
S3: History Archive
1.2K/min
20K/min
API
Enterprise
API
API
Enterprise
API
Reports &
Dashboards
TL;DR?
Simplified View
Event driven and Serverless Architecture
Lambda Kinesis LambdaNoSQL DB
Data Transformation
Lambda Kinesis Lambda
Data Transformation
Downstream
Consumers
Reporting &
Analytics
Data Warehouse
NoSQL DBMainframe
Archive
RESTful JSON
Microservices
Near-real-time reporting and
advanced analytics
Value Delivered
• Processing 1 million
transactions/day with a peak
load of 2K transactions/minute
• near real-time reports and
dashboards
• Laid out the groundwork for
decommissioning legacy
systems
• Low cost maintenance &
operations: No servers to
maintain, load-balance, or scale
• Single source of truth & entry
via JSON restful services
• NoSQL schema: Future proof
• Improved data accuracy by
supporting edge cases that were
previously missed
Developed and released in six months!
Leapfrog into Serverless - a Deloitte-Amtrak Case Study | Serverless Conference 2017
Serverless meets it’s big claims!
Lower infrastructure cost
Lower maintenance cost
Pay Per Use
Faster deployment
Faster performance
Continuous Scaling
Highly available
Increased speed Reduced costs
Infrastructure Model
Prod
24x7
Test
24x7
Dev
24x7
Prod
18 hours/day
Test
2 hours/day
Dev
8 hours/day
On-Prem Stack Serverless Stack
8 Load Balanced Instances
2 Load Balanced Instances
1 Instance
Production Capacity
Production Capacity
Production Capacity
BUT
Serverless is NOT one-size-fits-all
Serverless Use cases
• Long-running or complex computational
tasks
• Data migration from relational to NoSQL
• Applications requiring significant disc space
or RAM
• Applications requiring SSH server access
• Web applications
• Mobile backend
• IoT backend
• Real-time analytics and data processing
• Etc.
Most Suited Least Suited
J
Key Takeaways
• Serverless = Technology + Mindset shift
• Prototypes Prototypes Prototypes!
• Start small
• Reuse & integrate with existing tools as much as
possible
• Don’t forget DevOps!
• Understand AWS limits
• DynamoDB: 400 KB per item
• 5 GSI and 5 LSI. Batch processing. No nested
indexes.
• Lambda: 128 KB input per event. Cold starts.
• Kinesis Shards & DynamoDB partition
• Exponential back off algorithm
• Make CloudWatch and X-Ray your best friend
• Understand how pricing works
• A larger RAM lambda can be cheaper than
lower if it finishes executing much quicker
• IAM roles & policy
• Data migration is a beast!
Approach Technology
So, is Serverless for me?
Should I buy a house? Should I rent a Room?My Core Objectives
Packaged or
à la carte
services
Find individual
suppliers or
DIY
OOB FeaturesOOB Features
@GaryArora

More Related Content

PDF
Navigating a Mesh of Microservices in the new Cloud-Native World with Istio
PDF
Migrating .NET and .NET Core to Pivotal Cloud Foundry (1/2)
PPTX
Serverless Architecture at iRobot
PDF
20160317 lagom sf scala
PPTX
Microservice.net by sergey seletsky
PPTX
.Net Microservices with Event Sourcing, CQRS, Docker and... Windows Server 20...
PPTX
Cqrs and event sourcing in azure
PPTX
The Application Server Platform of the Future - Container & Cloud Native and ...
Navigating a Mesh of Microservices in the new Cloud-Native World with Istio
Migrating .NET and .NET Core to Pivotal Cloud Foundry (1/2)
Serverless Architecture at iRobot
20160317 lagom sf scala
Microservice.net by sergey seletsky
.Net Microservices with Event Sourcing, CQRS, Docker and... Windows Server 20...
Cqrs and event sourcing in azure
The Application Server Platform of the Future - Container & Cloud Native and ...

What's hot (20)

PPTX
Data stores: beyond relational databases
PDF
Event Sourcing in less than 20 minutes - With Akka and Java 8
ODP
micro services architecture (FrosCon2014)
PDF
MongoDB-as-a-Service on Pivotal Cloud Foundry
PPTX
DEV-1129 How Watson, Bluemix, Cloudant, and XPages Can Work Together In A Rea...
PDF
Project Sherpa: How RightScale Went All in on Docker
PPTX
The Problem is Data: Gwen Shapira, Confluent, Serverless NYC 2018
PDF
IoT 'Megaservices' - High Throughput Microservices with Akka
PDF
API Strategy Austin - App-centric vs Job-centric Microservices
PPTX
Building a Reliable Cloud Bank in Java | Starling Bank | QCon 2018
PPTX
Intellias CQRS Framework
PDF
MongoDB World 2019: Using the MongoDB Enterprise Kubernetes Operator to Scale...
PDF
Pivoting Spring XD to Spring Cloud Data Flow with Sabby Anandan
PDF
Matt Chung (Independent) - Serverless application with AWS Lambda
PPTX
Cloudsolutionday 2016: Docker & FAAS at getvero.com
PDF
Journey from on prem to the cloud with kubernetes
PPTX
Meetup #3: Migrating an Oracle Application from on-premise to AWS
PPTX
Tokyo Azure Meetup #6 - Azure Monthly Update - June
PDF
Effective Akka v2
PPTX
Vitalii Korzh "Managed Workflows or How to Master Data"
Data stores: beyond relational databases
Event Sourcing in less than 20 minutes - With Akka and Java 8
micro services architecture (FrosCon2014)
MongoDB-as-a-Service on Pivotal Cloud Foundry
DEV-1129 How Watson, Bluemix, Cloudant, and XPages Can Work Together In A Rea...
Project Sherpa: How RightScale Went All in on Docker
The Problem is Data: Gwen Shapira, Confluent, Serverless NYC 2018
IoT 'Megaservices' - High Throughput Microservices with Akka
API Strategy Austin - App-centric vs Job-centric Microservices
Building a Reliable Cloud Bank in Java | Starling Bank | QCon 2018
Intellias CQRS Framework
MongoDB World 2019: Using the MongoDB Enterprise Kubernetes Operator to Scale...
Pivoting Spring XD to Spring Cloud Data Flow with Sabby Anandan
Matt Chung (Independent) - Serverless application with AWS Lambda
Cloudsolutionday 2016: Docker & FAAS at getvero.com
Journey from on prem to the cloud with kubernetes
Meetup #3: Migrating an Oracle Application from on-premise to AWS
Tokyo Azure Meetup #6 - Azure Monthly Update - June
Effective Akka v2
Vitalii Korzh "Managed Workflows or How to Master Data"
Ad

Similar to Leapfrog into Serverless - a Deloitte-Amtrak Case Study | Serverless Conference 2017 (17)

PPTX
Serverless-Computing-The-Future-of-Backend-Development
PDF
AWS for Java Developers workshop
PPTX
AWS for the Java Developer
PPTX
Microsoft Azure
PDF
ScyllaDB Virtual Workshop
PDF
ScyllaDB Virtual Workshop: Getting Started with ScyllaDB 2024
PPTX
"An introduction to Kx Technology - a Big Data solution", Kyra Coyne, Data Sc...
PPTX
"An introduction to Kx Technology - a Big Data solution", Kyra Coyne, Data Sc...
PDF
AWS를 활용한 첫 빅데이터 프로젝트 시작하기(김일호)- AWS 웨비나 시리즈 2015
PDF
Serverless SQL
PDF
Horses for Courses: Database Roundtable
PPTX
How leading financial services organisations are winning with tech
PPTX
Serverlessusecase workshop feb3_v2
PDF
Billions of Messages in Real Time: Why Paypal & LinkedIn Trust an Engagement ...
PDF
Cloud Experience: Data-driven Applications Made Simple and Fast
PPTX
Big Data Goes Airborne. Propelling Your Big Data Initiative with Ironcluster ...
PPTX
Windowsazureplatform Overviewlatest
Serverless-Computing-The-Future-of-Backend-Development
AWS for Java Developers workshop
AWS for the Java Developer
Microsoft Azure
ScyllaDB Virtual Workshop
ScyllaDB Virtual Workshop: Getting Started with ScyllaDB 2024
"An introduction to Kx Technology - a Big Data solution", Kyra Coyne, Data Sc...
"An introduction to Kx Technology - a Big Data solution", Kyra Coyne, Data Sc...
AWS를 활용한 첫 빅데이터 프로젝트 시작하기(김일호)- AWS 웨비나 시리즈 2015
Serverless SQL
Horses for Courses: Database Roundtable
How leading financial services organisations are winning with tech
Serverlessusecase workshop feb3_v2
Billions of Messages in Real Time: Why Paypal & LinkedIn Trust an Engagement ...
Cloud Experience: Data-driven Applications Made Simple and Fast
Big Data Goes Airborne. Propelling Your Big Data Initiative with Ironcluster ...
Windowsazureplatform Overviewlatest
Ad

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Approach and Philosophy of On baking technology
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Cloud computing and distributed systems.
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Approach and Philosophy of On baking technology
Advanced methodologies resolving dimensionality complications for autism neur...
Reach Out and Touch Someone: Haptics and Empathic Computing
Spectral efficient network and resource selection model in 5G networks
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
cuic standard and advanced reporting.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
MYSQL Presentation for SQL database connectivity
NewMind AI Monthly Chronicles - July 2025
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Chapter 3 Spatial Domain Image Processing.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Dropbox Q2 2025 Financial Results & Investor Presentation
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Cloud computing and distributed systems.
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx

Leapfrog into Serverless - a Deloitte-Amtrak Case Study | Serverless Conference 2017

  • 1. LeapfrogintoServerless A Deloitte-AmtrakCaseStudy S E R V E R L E S S C O N F 2 0 1 7 @GaryArora Cloud Solutions Architect Deloitte
  • 2. 1. Share our serverless journey with Amtrak 2. How can traditional enterprises leapfrog into serverless? 3. Collect some geek swag! Objectives
  • 4. 4 | Copyright © 2017 Deloitte Development LLC. All rights reserved. Road to serverless solutions Paradigm shift in computing evolution Focus on business logic Stackabstraction Serverless Unit of scale: Functions • Deploy in milliseconds • Live for seconds Containerization Unit of scale: Application • Deploy in seconds • Live for minutes/hours Virtual Machines Unit of scale: Machine • Deploy in minutes • Live for week Physical Machines Unit of scale: Physical servers • Deploy in months • Live for years Server based
  • 6. Carries more riders than all airlines combined! DC Boston 85,700 Passengers/Day 30 million annual riders Serves 500 destinations over 21K miles of routes Top Speed: 150 mph $3.2 Billion in Revenue 71% Online
  • 7. Challenges • Unpredictable and slow response time: Ranging from few seconds – 1 hour • Analytics & BI dashboard refreshed data every 24 hours – causing reports to be stale by 1 day • Existing systems are expensive to support and extend with new features • No single source of truth • High level of data redundancy • Lack of integration & consistency • Non standardized data storage and data access protocols
  • 8. Solution Approach Serverless Integrated within AWS ecosystem Widest prod implementation & support Native mobile support & caching 1 2 Relational DB: High familiarity = Fastest GTM NoSQL: Flexible schema = future proof Select DB Design Select DB Datastore centered
  • 9. There’s a lot more than Lambda in AWS Serverless stack API Gateway: Builds, deploys, and manages micro services. Lambda Runs code in response to events Integratedwithother AWScomponents Dynamo DB Managed NoSQL Database Redshift Managed, petabyte- scale data warehouse SNS Managed push notification for multiple platforms Kinesis Real-time data streaming and analytics S3 Durable, highly- scalable cloud storage
  • 10. Solution Architecture Redshift ServiceTickets Ticket Process QUERY Target Systems Automated Notifications Operations Trade Partners AWS Cloud Native ServicesSource Systems Tickets Booking Tickets Migration Glacier: Archive Ref Data JBoss Booking Tickets S3: Overflow >400KB Booking Process Data Pipeline: Archive Segments 1 HOURETL ETL Booking Data Pipeline: Reporting S3: Flatfile S3: Consumer Archive DynamoDB S3: Reporting Ticket Service Process 20K/min 7 DAYS XML Data Integration Enterprise Services Lambda Kinesis Lambda Lambda Kinesis Lambda Lambda Kinesis Lambda CloudWatch Monitoring, Auditing, and Logging Audit Log Lambda: Notification SNSAppDynamics S3: History Archive 1.2K/min 20K/min API Enterprise API API Enterprise API Reports & Dashboards
  • 12. Simplified View Event driven and Serverless Architecture Lambda Kinesis LambdaNoSQL DB Data Transformation Lambda Kinesis Lambda Data Transformation Downstream Consumers Reporting & Analytics Data Warehouse NoSQL DBMainframe Archive RESTful JSON Microservices
  • 14. Value Delivered • Processing 1 million transactions/day with a peak load of 2K transactions/minute • near real-time reports and dashboards • Laid out the groundwork for decommissioning legacy systems • Low cost maintenance & operations: No servers to maintain, load-balance, or scale • Single source of truth & entry via JSON restful services • NoSQL schema: Future proof • Improved data accuracy by supporting edge cases that were previously missed Developed and released in six months!
  • 16. Serverless meets it’s big claims! Lower infrastructure cost Lower maintenance cost Pay Per Use Faster deployment Faster performance Continuous Scaling Highly available Increased speed Reduced costs
  • 17. Infrastructure Model Prod 24x7 Test 24x7 Dev 24x7 Prod 18 hours/day Test 2 hours/day Dev 8 hours/day On-Prem Stack Serverless Stack 8 Load Balanced Instances 2 Load Balanced Instances 1 Instance Production Capacity Production Capacity Production Capacity
  • 18. BUT Serverless is NOT one-size-fits-all
  • 19. Serverless Use cases • Long-running or complex computational tasks • Data migration from relational to NoSQL • Applications requiring significant disc space or RAM • Applications requiring SSH server access • Web applications • Mobile backend • IoT backend • Real-time analytics and data processing • Etc. Most Suited Least Suited J
  • 20. Key Takeaways • Serverless = Technology + Mindset shift • Prototypes Prototypes Prototypes! • Start small • Reuse & integrate with existing tools as much as possible • Don’t forget DevOps! • Understand AWS limits • DynamoDB: 400 KB per item • 5 GSI and 5 LSI. Batch processing. No nested indexes. • Lambda: 128 KB input per event. Cold starts. • Kinesis Shards & DynamoDB partition • Exponential back off algorithm • Make CloudWatch and X-Ray your best friend • Understand how pricing works • A larger RAM lambda can be cheaper than lower if it finishes executing much quicker • IAM roles & policy • Data migration is a beast! Approach Technology
  • 21. So, is Serverless for me? Should I buy a house? Should I rent a Room?My Core Objectives Packaged or à la carte services Find individual suppliers or DIY OOB FeaturesOOB Features