SlideShare a Scribd company logo
We’re AGILE
we embrace CHANGE
we automate EVERYTHING
we always value TOP TALENT
Serverless
Real-time Tracking & Analysis
@heisthedon
about://me
dev manager @carsales
head of retail platform
@heisthedon
Agenda
• Motivation behind this
• Serverless.. What and Why?
• The Architecture
• What We Learnt
Our Motivation
Our Inspiration
Feedback Loop
we want faster feedback
be autonomous and resourceful
take ownership and be accountable
so we build our own tracking solution
Our Success Metrics are
Speed of Implementation Must be Cost Effectives No Reinvent the Wheels Less Maintenance
What Is Serverless Architectures?
Serverless != No Server
Serverless is…
• Orchestration. Event-driven - the "if this, then that" trigger
• Microservices architecture
• In the Cloud
Why Serverless Architectures?
Focus on what matters
Serverless helps us to focus on what matters…
• Business problem to solve
• Infrastructure – less maintenance, auto-scale, capacity and
underutilization servers not a big concern
• Less code to write
• Logging and monitoring built-in
Our Lego Building Blocks
Amazon
CloudWatch
Amazon API
Gateway
Amazon
S3
Amazon
Elasticsearch
Service
Amazon
Kinesis
Streams
AWS
Lambda
Amazon
Redshift
Amazon
API Gateway
API Management Tools
• REST Endpoint
• Authentication
• Caching
• Monitoring
• Request throttling
• Cloudfront integration
• Cloudwatch Monitoring
• Stage features – dev vs prod
Maintenance
• No schedule downtime
Pricing Model
• Pay what you use
Serverless Real-time Tracking & Analysis
AWS
Lambda
Function as a Service (FAAS)
• Execute in response to events
• Deploy in millisecond
• Live in second (max 300s)
• Auto-scale by throughput (run 100 concurrent execution)
• Built-in retry mechanism
• Support versioning / aliasing
• Cloudwatch Log & Monitoring
Maintenance
• No schedule downtime
Pricing Model
• Pay what you use on execution and compute
(per execution on 100ms block)
Serverless Real-time Tracking & Analysis
Amazon
Kinesis Stream
Streaming Data Platform
• Scale in / out by Shard
• Data retention 1 – 7 days
• One shard has capacity of 1MB/sec in & 2MB/sec out,
and throughput of 1000 records / sec
• Cloudwatch Monitoring
Maintenance
• No schedule downtime
Pricing Model
• Pay what you use on data in
(PUT Payload Unit per 25KB block = $0.014 per million unit)
• Shard Hour (1 Shard = $11 per month)
• Data Retention
Amazon
Elasticsearch
Service
The Power of Elasticsearch and Cloud Combined
• The Full ELK Stacks
• High availability
• Failure detection, patch, snapshot are fully managed
• Cloudwatch Monitoring
Maintenance
• No schedule downtime
Pricing Model
• Pay what you use on compute hours & EBS storage
AWS
Lambda
Amazon
Elasticsearch
Service
Realtime Analytic
The Architecture
Amazon
CloudWatch
Amazon API
Gateway
Amazon
Kinesis
Streams
We are going to send…
100m requests / month
Amazon API
Gateway
Ajax /
img 1x1 Amazon
Kinesis
Streams
Integration with AWS Service Proxy
Map API Payload into Kinesis Stream Payload
Cost
$350
Cost
$18
Amazon
Kinesis
Streams
AWS
Lambda
Amazon
Elasticsearch
Service
POST to ES IndexPoll in batches
Cost
$94
Cost
$50
Serverless Real-time Tracking & Analysis
Kibana Dashboard
Few Cost Optimisation
• API Gateway and Lambda can be very
expensive..
• 100m requests = $350
• 200m requests = $700
• Batch requests to API Gateway
• Retrieve records in batch from Kinesis
• Lambda execution time
Deployment
Cloud Formation
for rest
Lambda utilises
Serverless Framework
Monitoring and Logging
For cost management
and visibility
CloudWatch
integration with all
services
CloudWatch Dashboard
CloudWatch Logs
Amazon
S3
AWS
Lambda
Amazon
Redshift
AWS
Lambda
Amazon
Elasticsearch
Service
Realtime Analytic
Extensibility
Amazon
CloudWatch
Amazon API
Gateway
Amazon
Kinesis
Streams
Our Success Metrics Revisited
Speed of Implementation Must be Cost Effectives No Reinvent the Wheels Less Maintenance
• Duplicate record on Kinesis Stream
• Cold-start on Lambda
Question?
Stay in touch
- careers.carsalesnetwork.com.au
- linkedin.com/carsales.com.au
- facebook.com/carsales.com.au
- Twitter: @carsales

More Related Content

PDF
Enterprise Serverless Adoption. An Experience Report
PPTX
Using AWS Lambda for Infrastructure Automation and Beyond
PPTX
Artificial Intelligence & Machine learning foundation topic in AWS
PDF
Getting Started with Amazon EventBridge
PDF
Choosing the right messaging service for your serverless app [with lumigo]
PDF
Thinking Asynchronously Full Vesion - Utah UG
PDF
To Serverless And Beyond!
PDF
RDS: Exciting & nerdy things you won't find in the whitepaper
Enterprise Serverless Adoption. An Experience Report
Using AWS Lambda for Infrastructure Automation and Beyond
Artificial Intelligence & Machine learning foundation topic in AWS
Getting Started with Amazon EventBridge
Choosing the right messaging service for your serverless app [with lumigo]
Thinking Asynchronously Full Vesion - Utah UG
To Serverless And Beyond!
RDS: Exciting & nerdy things you won't find in the whitepaper

What's hot (19)

PPT
BUILDING SERVERLESS SOLUTIONS WITH AZURE FUNCTIONS
PPTX
Azure Functions: Beginners to Advanced – Part 1
PDF
Meetup#7: AWS LightSail - The Simplicity of VPS - The Power of AWS
PDF
CICD in the World of Serverless
PPTX
Asgard and the aws cloud
PDF
AWS Lambda Containers - bridging the gap between serverless and containers on...
PDF
How LEGO.com Accelerates With Serverless
PPTX
Scalable Application Development on AWS
PPTX
Let's Talk About Serverless - Focusing on AWS Lambda
PDF
How to Grow a Serverless Team
PPTX
Aws serverless application repository
PDF
Front End Orlando - AWS Lambda
PDF
Ohio Devfest - Visual Analysis with GCP
PPTX
Almacenamiento en la nube con AWS
PPTX
MongoDB World 2018: Using Puppet, Ansible and Ops Manager to Create Your Own ...
PDF
Amazon Redshift (February 2016)
PPTX
MongoDB World 2018: Replatforming: Switching to MongoDB for Flexibility, Scal...
PPT
Dave Nielsen - the economically unstoppable cloud
PPTX
Scalable Java Application Development on AWS
BUILDING SERVERLESS SOLUTIONS WITH AZURE FUNCTIONS
Azure Functions: Beginners to Advanced – Part 1
Meetup#7: AWS LightSail - The Simplicity of VPS - The Power of AWS
CICD in the World of Serverless
Asgard and the aws cloud
AWS Lambda Containers - bridging the gap between serverless and containers on...
How LEGO.com Accelerates With Serverless
Scalable Application Development on AWS
Let's Talk About Serverless - Focusing on AWS Lambda
How to Grow a Serverless Team
Aws serverless application repository
Front End Orlando - AWS Lambda
Ohio Devfest - Visual Analysis with GCP
Almacenamiento en la nube con AWS
MongoDB World 2018: Using Puppet, Ansible and Ops Manager to Create Your Own ...
Amazon Redshift (February 2016)
MongoDB World 2018: Replatforming: Switching to MongoDB for Flexibility, Scal...
Dave Nielsen - the economically unstoppable cloud
Scalable Java Application Development on AWS
Ad

Similar to Serverless Real-time Tracking & Analysis (20)

PDF
Serverless Architectural Patterns and Best Practices | AWS
PDF
Beyond serverless.pptx
PDF
Modern Applications Development on AWS
PPTX
TECHTalks - Philadelphia PA - Brien Blandford
PDF
Crio.do - Deployment on AWS Masterclass
PDF
Serveless design patterns (VoxxedDays Luxembourg)
PDF
Serverless Design Patterns
PDF
Em tempo real: Ingestão, processamento e analise de dados
PPTX
Building Data Analytics pipelines in the cloud using serverless technology
PDF
Microservices Manchester: Serverless Architectures By Rafal Gancarz
PDF
Bluesoft @ AWS re:Invent 2017 + AWS 101
PPTX
Serverless Architecture 101 ⚡
PDF
Jumpstart your idea with AWS Serverless [Oct 2020]
PDF
Operating Microservices at Hyperscale — Tech in Asia PDC 2019
PPTX
The Cloud - What's different
PDF
JustGiving | Serverless Data Pipelines, API, Messaging and Stream Processing
PDF
JustGiving – Serverless Data Pipelines, API, Messaging and Stream Processing
PDF
Microservices and serverless for MegaStartups - DLD TLV 2017
PDF
Skillenza Build with Serverless Challenge - Advanced Serverless Concepts
PDF
Serverless Architectures on AWS Lambda
Serverless Architectural Patterns and Best Practices | AWS
Beyond serverless.pptx
Modern Applications Development on AWS
TECHTalks - Philadelphia PA - Brien Blandford
Crio.do - Deployment on AWS Masterclass
Serveless design patterns (VoxxedDays Luxembourg)
Serverless Design Patterns
Em tempo real: Ingestão, processamento e analise de dados
Building Data Analytics pipelines in the cloud using serverless technology
Microservices Manchester: Serverless Architectures By Rafal Gancarz
Bluesoft @ AWS re:Invent 2017 + AWS 101
Serverless Architecture 101 ⚡
Jumpstart your idea with AWS Serverless [Oct 2020]
Operating Microservices at Hyperscale — Tech in Asia PDC 2019
The Cloud - What's different
JustGiving | Serverless Data Pipelines, API, Messaging and Stream Processing
JustGiving – Serverless Data Pipelines, API, Messaging and Stream Processing
Microservices and serverless for MegaStartups - DLD TLV 2017
Skillenza Build with Serverless Challenge - Advanced Serverless Concepts
Serverless Architectures on AWS Lambda
Ad

Recently uploaded (20)

PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Encapsulation_ Review paper, used for researhc scholars
PPT
Teaching material agriculture food technology
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Big Data Technologies - Introduction.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
A Presentation on Artificial Intelligence
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Unlocking AI with Model Context Protocol (MCP)
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Encapsulation_ Review paper, used for researhc scholars
Teaching material agriculture food technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
NewMind AI Weekly Chronicles - August'25 Week I
MYSQL Presentation for SQL database connectivity
Big Data Technologies - Introduction.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
“AI and Expert System Decision Support & Business Intelligence Systems”
Spectral efficient network and resource selection model in 5G networks
A Presentation on Artificial Intelligence
The Rise and Fall of 3GPP – Time for a Sabbatical?
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
20250228 LYD VKU AI Blended-Learning.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Chapter 3 Spatial Domain Image Processing.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Unlocking AI with Model Context Protocol (MCP)

Serverless Real-time Tracking & Analysis

Editor's Notes

  • #16: Free up our time for the important things.
  • #25: Further extension we can easily create another lambda function that can help us integrate with Redshift