This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Triggered by events:• Direct Sync and Async invocations • Put to an Amazon S3 bucket• API Gateway call• And many more …
Makes it easy to• Build back-end services that perform at scale • Perform data-driven auditing, analysis, and notification
Continuous Scaling No Servers to Manage
AWS Lambda automatically scales your application by running code in response to each trigger. Your code runs in parallel and processes each trigger individually, scaling precisely
with the size of the workload.
Subsecond Metering
With AWS Lambda, you are charged for every 100ms your code executes and the number of times your code is
triggered. You don't pay anything when your code isn't running.
AWS Lambda automatically runs your code without requiring you to provision or manage servers. Just write the code
and upload it to Lambda.
Benefits of AWS Lambda for building mobile backends
1 2 3
DEVICE SDKSet of client libraries to
connect, authenticate and exchange messages
DEVICE GATEWAYCommunicate with devices
via MQTT and HTTP
AUTHENTICATIONSecure with mutual authentication and
encryption
RULES ENGINETransform messages based on rules and
route to AWS Services
AWS Services- - - - -
3P Services
SHADOWPersistent thing state
during intermittent connections
APPLICATIONS
AWS IoT API
REGISTRYIdentity and Management of
your things
AWS IoT: How it Works
AWS IoT Rules Engine
Complex Evaluations: Respond to the fleet, not just a single unit. Dozens of functions() available
Multiple / Simultaneous Actions: Sometimes a situation requires you to take many actions
Simple & Familiar Syntax- SQL Statement to define topic filter- Optional WHERE clause- Advanced JSON support
Functions improve signal : noise- String manipulation (regex support)- Mathematical operations- Crypto support- UUID, Timestamp, rand, etc.
AWS IoT Rules Engine Actions
Rules Engine evaluates inbound messages published into AWS IoT, transforms and delivers to the appropriate endpoint based on business rules.
External endpoints can be reached via Lambda and Simple Notification Service (SNS).
1. Connect your IoT device to AWS IoT, or purchase one of the AWS IoT hardware starter kits to get started. With a few clicks in the AWS Management Console, you can create an device policy and rule that enables you to securely and easily connect your device to the cloud and access data, business logic, or functionality from your back-end services.
2. Create and test your first Lambda function. With AWS Lambda, there are no new languages, tools, or frameworks to learn. You can use any third party library, even native ones. And every month, the first 1M invokes are on us!
3. Select Lambda as the rule action for your IoT device … Use the sample code and setup instructions to quickly create your first IoT device backend using AWS IoT and AWS Lambda.
Thank you!
Visit http://aws.amazon.com/iot, the AWS blog, and the AWS IoT forum to learn more and get started using AWS IoT.
Visit http://aws.amazon.com/lambda, the AWS Compute blog, and the Lambda forum to learn more and get started using Lambda.