Upload
apigee-google-cloud
View
67
Download
2
Embed Size (px)
Citation preview
©2015 Apigee Corp. All Rights Reserved.
Serverless MicroservicesAlan Ho : ApigeeKevin Kohut : Accenture
©2015 Apigee Corp. All Rights Reserved.
Serverless computing is the code execution model that the cloud provider abstracts the complexity of managing individual servers
3
©2015 Apigee Corp. All Rights Reserved.
Attributes of Serverless
• No Servers to manager
• No Load Balancers
• Pay by Request
4
©2015 Apigee Corp. All Rights Reserved.
Serverless Stack
5
FaaS BaaS
PubSub
API Gateway
AsyncEvents
SyncEvents
©2015 Apigee Corp. All Rights Reserved.
What is FaaS ?• Deployment = VM Code
• Event-based
• No Access to File System
• Pay By Request
• Logging / Monitoring built in
6
Google Functions
AWS Lambda
Azure Functions
©2015 Apigee Corp. All Rights Reserved.
Role of an API Management ?
• REST <-> RPC
• API Lifecycle
7
Design
Develop
Secure
PublishMonitor
Analyze
Monetize
Scale
©2015 Apigee Corp. All Rights Reserved.
What is a BaaS ?
8
• Multi-Tenant DB
• Usually based on NoSQL
• Lower DB Admin overhead
• Pay By Request / Storage
• Logging / Monitoring built in
API BaaS(Usergrid)
Firebase
DynamoDB
Cloud Datastore
SimpleDB
Google BaaS
AWS BaaS
|
(m) obileB ackend a saS ervice
Datastore
Push Notifications
Connections /Social
Location
Users
…and more
Application
©2015 Apigee Corp. All Rights Reserved.
On the InsideTomcat (Usergrid Application)- Rest APIs- Orchestration & Integration
Cassandra- Used as Source of Record- Highly scalable data model including multi-level
sharding of data
ElasticSearch- Provides all indexing for Usergrid with custom index
mappings- Purpose-built for indexing
©2015 Apigee Corp. All Rights Reserved.
Benefits
• Economies of Scale • No Less Ops • Simplified Programming Model
11
©2015 Apigee Corp. All Rights Reserved.
Gotchas• No Filesystem
– Lack of Config Management– Monitoring Flexability
• Lack of Indexing Control
• Beholden to Auto-scaling algorithms
• Rigid Programming Model
12
©2015 Apigee Corp. All Rights Reserved.
ConsiderationsServerless Containers
Code Deployment ✔ ✔No Server Management ✔Persistent Workload ✔Event Based Workload ✔C applications / Libraries ✔
15