Date post: | 07-Jan-2017 |
Category: |
Internet |
Upload: | shiva-narayanaswamy |
View: | 426 times |
Download: | 0 times |
MONKEY TOOK 5 BANANAS
Run a banana inventory
Plot monkeys banana consumption pattern
Analytics on monkey banana consumption across all zoos
- Real time (or near real time) - Push notifications - One-‐way ‘fire-‐and-‐forget’ - Immediate action at event consumer - Informational (“monkey took bananas”) and not commands (“perform banana inventory”)
5 CHARACTERISTICS
WHY?
- Decouple responsibilities - Communicate by triggering events - Scale out components horizontally - Higher responsiveness - High availability & Resiliency
- A zero-‐administration compute platform - Stored procedures for the cloud - Function-‐as-‐a-‐Service (NodeJS/Java) - Event driven from other services - …or triggered externally and even chained
WHAT IS LAMBDA?
COMPONENT FAILURE EVENTS
- EC2 auto healing - SQS design pattern - Service discovery + Container recycling – Consul – Serf
STREAMING EVENTS
Cloudtrail logs streaming to Cloudwatch
Subscribe Kinesis stream to Cloudwatch logs
Lambda func8on subscribed to Kinesis watching for pa:erns
SNS no8fica8on for insecure pa:erns in Cloudtrail logs
MONITORING AND METRICS
– Centralized logging – Log Analytics – Build metrics, application metrics, customer experience metrics instead of CPU, memory and OS metrics
– Event Storms