Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
AWS Lambda
and RDS
Clouddictive
https://blog.clouddictive.com
team@clouddictive.com
Agenda
❖ What is Serverless Compute
❖ Benefits of Serverless Compute
❖ AWS Lambda
❖ How It Works
❖ RDS
❖ Employee Service
...
Serverless Compute
❖ Next step in the evolution of Cloud Computing
❖ Capability to run your code or a function in the clou...
Benefits of Serverless Compute
❖ No servers to administer
❖ No Need Maintain and Manage Server - applying
updates
❖ Pay fo...
AWS Lamba
❖ Function in the Cloud
❖ Automatic Scaling
❖ Pay as you go
❖ Pricing – 1M requests for free and then $0.20/1m r...
How It Works
❖ Source - https://aws.amazon.com/lambda/
AWS RDS
❖ Amazon RDS is the “RDBMS” (Relation Database
Management System) in the cloud.
❖ Consumer can launch resizable in...
AWS RDS – Database Engines
❖ RDS support following Database engines:
❖ Amazon Aurora – Amazon version of MySQL cheaper and...
Employee Service- Stack
Employee Service- Sequence
Demo- Setup RDS
Setup Maven Project - SPRING
❖ Create a Spring maven project in STS (jar). Add following dependencies to POM
❖ MySQL
❖ Spr...
Setup Maven Project - Classes
Setup Maven Project- Spring
Context
IAM Role and VPC - Demo
❖ IAM role should have full access to RDS.
❖ VPC (ip-address range) in which the lambda function
r...
Demo – Create and Test Lambda
Function
Resources
❖ https://blog.clouddictive.com/2016/07/21/serverless-
compute-series-part-4-aws-lambda-and-rds/
❖ https://youtu...
Upcoming SlideShare
Loading in …5
×

Aws lambda and accesing AWS RDS - Clouddictive

298 views

Published on

Implement a Lambda function which integrates with RDS. How to implement this new function in Java using Spring Framework.
1) Setup RDS instance
2) Implement RequestHandler in java
4) Create lambda function

Published in: Software
  • Be the first to comment

  • Be the first to like this

Aws lambda and accesing AWS RDS - Clouddictive

  1. 1. AWS Lambda and RDS Clouddictive https://blog.clouddictive.com team@clouddictive.com
  2. 2. Agenda ❖ What is Serverless Compute ❖ Benefits of Serverless Compute ❖ AWS Lambda ❖ How It Works ❖ RDS ❖ Employee Service ❖ Setup RDS ❖ Setup maven project ❖ Create and Test lambda function – Demo ❖ Resources
  3. 3. Serverless Compute ❖ Next step in the evolution of Cloud Computing ❖ Capability to run your code or a function in the cloud without the need to manage any server in the cloud. ❖ Big Players ❖ Amazon - AWS Lambda ❖ Google - Google Cloud Function ❖ Microsoft - Azure Functions
  4. 4. Benefits of Serverless Compute ❖ No servers to administer ❖ No Need Maintain and Manage Server - applying updates ❖ Pay for only code execution ❖ No charge when the code is not running ❖ Automatic Scaling
  5. 5. AWS Lamba ❖ Function in the Cloud ❖ Automatic Scaling ❖ Pay as you go ❖ Pricing – 1M requests for free and then $0.20/1m requests. ❖ Supported languages – Java, Python, and JavaScript ❖ Deployment – direct zip uploads lambda or from S3. ❖ Event Driven – Different source can trigger your function. ❖ RESTful invocation capability using AWS API Gateway. ❖ Logs management on CloudWatch. ❖ Maximum execution time – 5 minutes.
  6. 6. How It Works ❖ Source - https://aws.amazon.com/lambda/
  7. 7. AWS RDS ❖ Amazon RDS is the “RDBMS” (Relation Database Management System) in the cloud. ❖ Consumer can launch resizable instances of different database engines in the cloud and handles the management of admin task for you like automated backups and applying software patches.
  8. 8. AWS RDS – Database Engines ❖ RDS support following Database engines: ❖ Amazon Aurora – Amazon version of MySQL cheaper and faster. ❖ MySQL ❖ PostgreSQL ❖ Oracle ❖ SQL Server ❖ Maria DB – Community-developed fork of MySQL RDBMS (Free under GNU GPL)
  9. 9. Employee Service- Stack
  10. 10. Employee Service- Sequence
  11. 11. Demo- Setup RDS
  12. 12. Setup Maven Project - SPRING ❖ Create a Spring maven project in STS (jar). Add following dependencies to POM ❖ MySQL ❖ Spring – context ❖ Spring – core ❖ Spring – TX (Transaction) ❖ Spring – jdbc ❖ Spring – test ❖ Jackson libraray (Jackson-mapper-asl) ❖ Junit ❖ Aws Lambda (aws-lambda-java-core)
  13. 13. Setup Maven Project - Classes
  14. 14. Setup Maven Project- Spring Context
  15. 15. IAM Role and VPC - Demo ❖ IAM role should have full access to RDS. ❖ VPC (ip-address range) in which the lambda function resides have access to RDS. ❖ Demo
  16. 16. Demo – Create and Test Lambda Function
  17. 17. Resources ❖ https://blog.clouddictive.com/2016/07/21/serverless- compute-series-part-4-aws-lambda-and-rds/ ❖ https://youtu.be/9CH5UerBtDA ❖ https://youtu.be/wRg_PwuBpFk ❖ https://youtu.be/mQwmX8weOsY ❖ https://youtu.be/c79ytPC_Lco

×