SlideShare a Scribd company logo
1
Building predictive apps with λ & μ-services architecture#
Alan Ho @karlunho
Director of Product
Context is King
2
Technology Choices Today
3
Datawarehouse
 RDBMS
 J2EE AppServer
Lambda Architecture
4
What is Context ?
5
Historical #
Events#
Recent#
Events#
Now#
Lambda Architecture
6
Batch
Storage
Near RT
Storage
Batch
Processing
(MR)
Near
RealTime
Processing
Query DB
Batch Layer# Serving Layer#
Speed Layer#
APIs 

Direct Mail
Email
Web
Mobile
Outreach
Req / Res
Processing
Historical
Events
Recent
Events
Netflix
7
•  Offline = Batch Layer
•  Nearline = Speed Layer
•  Online = Serving Layer
Batch Layer (Offline)
•  Singular Value
Decomposition
•  Batch like operations
•  High algorithm
complexity
•  Results Flow into
Cassandra
Speed Layer (Near Line)
10
•  Medium request/response
•  Medium data
•  Medium algorithm
complexity
•  Intermediate caching,
incremental learning algos
Serving layer (Online)
• Fast request/response,
performance is key – high
availability/SLA
• Fallback mechanism to
Nearline/Offline
operations
• Low algorithm complexity
Final Thoughts:

•  Very complete system
•  Very custom and high
performance
•  Lots of specialized systems
for specialized tasks
•  Not practical for most
enterprises
Microservices & Lambda
Architecture
13
App Explosion
14
How can I embed context-awareness in
all customer experiences?
Micro-services
15
Micro-services Best Practice
16
Isolation REST API
HTTP://<Resource>/
Isolation at all tiers
17
Batch
Storage
Near RT
Storage
Batch
Processing
(MR)
Near
RealTime
Processing
Query DB
APIs 

Direct Mail
Email
Web
Mobile
Outreach
Req / Res
Processing
Historical
Events
Recent
Events
Batch
Processing
(MR)
Near
RealTime
Processing
Req / Res
Processing
Batch
Processing
(MR)
Near
RealTime
Processing
Req / Res
Processing
Batch
Processing
(MR)
Near
RealTime
Processing
Req / Res
Processing
Batch
Storage
Near RT
Storage
Query DB
Batch
Storage
Near RT
Storage
Query DB
YARN Batch Layer# Serving Layer#
API at all tiers
18
Batch Layer# Serving Layer#
Speed Layer#
Direct Mail
Email
Web
Mobile
Outreach
/Scores#
/Counts#
/Recommendations#
Historical
Events
Recent
Events
Real-time Scoring for
Recommendations
19
Recommendations Example
20
Real-time Scoring Architecture
21
Hadoop
In-Memory
Insights
(GRASP)
Node.js
Node.js
API BaaS
(APIs) 
Direct Mail
Email
Web
Mobile
Outreach
(Batch Scores)
(Activities / Counters)
(Query)
Historical
Events
Realtime
Events
(Context) 
Backend
(Mashup)
3
4
5
1
2
 6
Node.js
Batch Layer
•  Uses R for building predictive
models
•  Algorithms based on Event
Sequences
•  Lots and lots of tooling
22
Hadoop
Insights
(GRASP)
API BaaS
(Batch Scores)
1
Apigee UI
23
R Code#
24
Scored Export to Serving Layer#
Speed Layer

•  Easy to program via node.js
•  Low algorithm complexity – Storm is overkill for
most Apigee customers
•  Simple aggregates via C* counters good enough
•  Good for capturing locations, activity stream, etc.
25
Node.js
API BaaS
Apigee UI
BaaS Node.js Counter Example
var event = new Usergrid.Counter(event_options, function (error, result) { … });
// Then we POST the event to increment the counter
var counter_options = {
name: productName + ’.add_to_cart',
value: 1
}
event.increment (counter_options, function (error, result)
26
curl -X GET https://api.usergrid.com/my-org/my-app/counters?
counter=appleIpad3.add_to_cart
Input code:
Output code:#
Microservices Layer
•  API Layer (Swagger)
•  Context Injection
•  Service Orchestration
•  Fallback logic
27
Node.js
 Node.js
API BaaS
Direct Mail
Email
Web
Mobile
Outreach
(Context) 
Backend
Swagger Based API Design
28
Node.js Code
29
APIs are Everywhere
30
Hadoop
In-Memory
Insights
Node.js
 Node.js
API BaaS
Direct Mail
Email
Web
Mobile
Outreach
Historical
Events
Realtime
Events
Backend
Hive
RHadoop
Node.js
Storm
Spark
Conclusion
•  Lambda architecture is a great way to
combine realtime & batch processing
•  Microservices complements Lambda
architecture for loosely-coupled systems
31
©2015 Apigee. All Rights Reserved.

More Related Content

PDF
API Strategy Austin - App-centric vs Job-centric Microservices
PDF
Microservices in the Enterprise: A Research Study and Reference Architecture
PDF
Navigating the Cloud Foundry Ecosystem of Ecosystems: An ISV Perspective
PDF
I Love APIs 2015: Microservices at Amazon
PDF
Microservices = Death of the Enterprise Service Bus (ESB)?
PDF
Using Pivotal Cloud Foundry with Google’s BigQuery and Cloud Vision API
PDF
Forecast 2014: Cloud-Aware Applications
PPTX
Building Cloud Native Applications
API Strategy Austin - App-centric vs Job-centric Microservices
Microservices in the Enterprise: A Research Study and Reference Architecture
Navigating the Cloud Foundry Ecosystem of Ecosystems: An ISV Perspective
I Love APIs 2015: Microservices at Amazon
Microservices = Death of the Enterprise Service Bus (ESB)?
Using Pivotal Cloud Foundry with Google’s BigQuery and Cloud Vision API
Forecast 2014: Cloud-Aware Applications
Building Cloud Native Applications

What's hot (17)

PPTX
Microservices and Azure App Services
PPTX
A Capability Blueprint for Microservices
PDF
Enterprise Integration Patterns Revisited (again) for the Era of Big Data, In...
PPTX
Nordic APIs IBM- Deploying Multi-cloud, Serverless, Cloud Foundry APIs at Scale
PDF
Using cloud native development to achieve digital transformation
PPTX
Microsoft Cloud-Native Workshop Slides
PDF
Cloud Native Java Microservices
PDF
2016 06 - design your api management strategy - axway - Api Management
PDF
2016-06 - Design your api management strategy - AWS - Microservices on AWS
PDF
WaveMaker - Spring Roo - SpringSource Tool Suite - Choosing the right tool fo...
PDF
Microservice architecture
PDF
2016 06 - design your api management strategy - smart wave - api use case in ...
PPTX
Azure Application Modernization
PPTX
apidays LIVE Jakarta - Building an Event-Driven Architecture by Harin Honesty...
PPTX
Architect your app modernization journey with containers on Microsoft Azure
PPTX
Microservices and the Cloud based future of integration final
PPTX
CF SUMMIT: Partnerships, Business and Cloud Foundry
Microservices and Azure App Services
A Capability Blueprint for Microservices
Enterprise Integration Patterns Revisited (again) for the Era of Big Data, In...
Nordic APIs IBM- Deploying Multi-cloud, Serverless, Cloud Foundry APIs at Scale
Using cloud native development to achieve digital transformation
Microsoft Cloud-Native Workshop Slides
Cloud Native Java Microservices
2016 06 - design your api management strategy - axway - Api Management
2016-06 - Design your api management strategy - AWS - Microservices on AWS
WaveMaker - Spring Roo - SpringSource Tool Suite - Choosing the right tool fo...
Microservice architecture
2016 06 - design your api management strategy - smart wave - api use case in ...
Azure Application Modernization
apidays LIVE Jakarta - Building an Event-Driven Architecture by Harin Honesty...
Architect your app modernization journey with containers on Microsoft Azure
Microservices and the Cloud based future of integration final
CF SUMMIT: Partnerships, Business and Cloud Foundry
Ad

Viewers also liked (20)

PDF
Chris Munns, DevOps @ Amazon: Microservices, 2 Pizza Teams, & 50 Million Depl...
PPTX
RESTful Web API
PDF
Personagraph introduction 11252014
PDF
Ember,js: Hipster Hamster Framework
PDF
Iguazú: A Long-Running Job Scheduler using Docker and Mesos
PPTX
Recording and media manipulation of WebRTC streams
PPT
Product Engineering Services of Semantic Space Technologies
PDF
IoT Architecture - are traditional architectures good enough or do we need n...
PDF
I Love APIs 2015: Scaling Mobile-focused Microservices at Verizon
PDF
Giving MongoDB a Way to Play with the GIS Community
PDF
Mining public datasets using opensource tools: Zeppelin, Spark and Juju
PPTX
Software Product Engineering Life-cycle
PDF
Microservices Standardization - Susan Fowler, Stripe
PDF
Agile Software Architecture
PDF
Mobile at TransferWise. Fintech
PDF
Product engineering @ TransferWise
PPT
Why APIs are not SOA++
PPTX
Maintaining the Front Door to Netflix : The Netflix API
PPTX
Kurento: a media server architecture and API for WebRTC
PDF
Reactive Fault Tolerant Programming with Hystrix and RxJava
Chris Munns, DevOps @ Amazon: Microservices, 2 Pizza Teams, & 50 Million Depl...
RESTful Web API
Personagraph introduction 11252014
Ember,js: Hipster Hamster Framework
Iguazú: A Long-Running Job Scheduler using Docker and Mesos
Recording and media manipulation of WebRTC streams
Product Engineering Services of Semantic Space Technologies
IoT Architecture - are traditional architectures good enough or do we need n...
I Love APIs 2015: Scaling Mobile-focused Microservices at Verizon
Giving MongoDB a Way to Play with the GIS Community
Mining public datasets using opensource tools: Zeppelin, Spark and Juju
Software Product Engineering Life-cycle
Microservices Standardization - Susan Fowler, Stripe
Agile Software Architecture
Mobile at TransferWise. Fintech
Product engineering @ TransferWise
Why APIs are not SOA++
Maintaining the Front Door to Netflix : The Netflix API
Kurento: a media server architecture and API for WebRTC
Reactive Fault Tolerant Programming with Hystrix and RxJava
Ad

Similar to I Love APIs 2015: Building Predictive Apps with Lamda and MicroServices (20)

PDF
Webcast: API-Centric Architecture for Building Context-Aware Apps
PDF
I Love APIs Europe 2015: Developer Sessions
PDF
Big Data Analytics Platforms by KTH and RISE SICS
PDF
Cloud Lambda Architecture Patterns
PPTX
Intro to big data analytics using microsoft machine learning server with spark
PPTX
Serverless without Code (Lambda)
PDF
Monitoring and Scaling Redis at DataDog - Ilan Rabinovitch, DataDog
PPTX
Serverless-Computing-The-Future-of-Backend-Development
PPTX
PayPal datalake journey | teradata - edge of next | san diego | 2017 october ...
PPTX
Serverlessusecase workshop feb3_v2
PDF
WSO2 Stream Processor: Graphical Editor, HTTP & Message Trace Analytics and More
PPTX
Lambda architecture: from zero to One
PPTX
How Kafka and Modern Databases Benefit Apps and Analytics
PPTX
What's New in .Net 4.5
PDF
Conquering Hadoop and Apache Spark with Operational Intelligence with Akshay Rai
PPTX
Hadoop Infrastructure and SoftServe Experience by Vitaliy Bashun, Data Architect
PPTX
Pacemaker hadoop infrastructure and soft serve experience
PDF
Stateful Interaction In Serverless Architecture With Redis: Pyounguk Cho
PPTX
Big Data Berlin v8.0 Stream Processing with Apache Apex
Webcast: API-Centric Architecture for Building Context-Aware Apps
I Love APIs Europe 2015: Developer Sessions
Big Data Analytics Platforms by KTH and RISE SICS
Cloud Lambda Architecture Patterns
Intro to big data analytics using microsoft machine learning server with spark
Serverless without Code (Lambda)
Monitoring and Scaling Redis at DataDog - Ilan Rabinovitch, DataDog
Serverless-Computing-The-Future-of-Backend-Development
PayPal datalake journey | teradata - edge of next | san diego | 2017 october ...
Serverlessusecase workshop feb3_v2
WSO2 Stream Processor: Graphical Editor, HTTP & Message Trace Analytics and More
Lambda architecture: from zero to One
How Kafka and Modern Databases Benefit Apps and Analytics
What's New in .Net 4.5
Conquering Hadoop and Apache Spark with Operational Intelligence with Akshay Rai
Hadoop Infrastructure and SoftServe Experience by Vitaliy Bashun, Data Architect
Pacemaker hadoop infrastructure and soft serve experience
Stateful Interaction In Serverless Architecture With Redis: Pyounguk Cho
Big Data Berlin v8.0 Stream Processing with Apache Apex

More from Apigee | Google Cloud (20)

PDF
How Secure Are Your APIs?
PDF
Magazine Luiza at a glance (1)
PPTX
Monetization: Unlock More Value from Your APIs
PDF
Apigee Demo: API Platform Overview
PDF
Ticketmaster at a glance
PDF
AccuWeather: Recasting API Experiences in a Developer-First World
PDF
Which Application Modernization Pattern Is Right For You?
PPTX
Apigee Product Roadmap Part 2
PPTX
The Four Transformative Forces of the API Management Market
PDF
Walgreens at a glance
PDF
Apigee Edge: Intro to Microgateway
PDF
Managing the Complexity of Microservices Deployments
PDF
Pitney Bowes at a glance
PPTX
Microservices Done Right: Key Ingredients for Microservices Success
PDF
Adapt or Die: Opening Keynote with Chet Kapoor
PDF
Adapt or Die: Keynote with Greg Brail
PDF
Adapt or Die: Keynote with Anant Jhingran
PDF
London Adapt or Die: Opening Keynot
PDF
London Adapt or Die: Lunch keynote
PDF
London Adapt or Die: Closing Keynote — Adapt Now!
How Secure Are Your APIs?
Magazine Luiza at a glance (1)
Monetization: Unlock More Value from Your APIs
Apigee Demo: API Platform Overview
Ticketmaster at a glance
AccuWeather: Recasting API Experiences in a Developer-First World
Which Application Modernization Pattern Is Right For You?
Apigee Product Roadmap Part 2
The Four Transformative Forces of the API Management Market
Walgreens at a glance
Apigee Edge: Intro to Microgateway
Managing the Complexity of Microservices Deployments
Pitney Bowes at a glance
Microservices Done Right: Key Ingredients for Microservices Success
Adapt or Die: Opening Keynote with Chet Kapoor
Adapt or Die: Keynote with Greg Brail
Adapt or Die: Keynote with Anant Jhingran
London Adapt or Die: Opening Keynot
London Adapt or Die: Lunch keynote
London Adapt or Die: Closing Keynote — Adapt Now!

Recently uploaded (20)

PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Nekopoi APK 2025 free lastest update
PPTX
Introduction to Artificial Intelligence
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
ISO 45001 Occupational Health and Safety Management System
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
ai tools demonstartion for schools and inter college
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPT
Introduction Database Management System for Course Database
PDF
AI in Product Development-omnex systems
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
2025 Textile ERP Trends: SAP, Odoo & Oracle
Design an Analysis of Algorithms II-SECS-1021-03
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Nekopoi APK 2025 free lastest update
Introduction to Artificial Intelligence
How Creative Agencies Leverage Project Management Software.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
CHAPTER 2 - PM Management and IT Context
ISO 45001 Occupational Health and Safety Management System
Operating system designcfffgfgggggggvggggggggg
Odoo POS Development Services by CandidRoot Solutions
Wondershare Filmora 15 Crack With Activation Key [2025
ai tools demonstartion for schools and inter college
How to Choose the Right IT Partner for Your Business in Malaysia
Introduction Database Management System for Course Database
AI in Product Development-omnex systems
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)

I Love APIs 2015: Building Predictive Apps with Lamda and MicroServices