Building Serverless Backends with AWS Lambda for React Native Apps by Kevin Old
This talk will explore a Serverless Architecture and how it can can aid any React Native developer in building scalable backends for their applications. Our provider of choice will be Amazon’s AWS ecosystem and AWS Lambda, DynamoDB, Cognito and API Gateway will be among the resources covered.
This talk will explore using the Amazon AWS ecosystem of technologies from React Native Apps.
We’ll explore the characteristics of a Serverless Architecture and how it can can aid any React Native developer in building scalable backends for their applications.
Our focus will shift to building a Lambda to provide the responses to data needed from an example React Native application.
The orchestration of this will be done via the Serverless Framework written to ease the burdens of managing the lifecycle of a serverless architecture.
The example we will talk through will focus on delivering a AWS Lambda, but we will discuss how using a framework such as this for abstraction and orchestration can allow for deploying Alexa Skills, mobile and IoT services serverless architectures.
Finally we’ll have a look at interacting with AWS Lambda, DynamoDB, S3 and SNS using Amazon’s AWS SDK for React Native (currently in Developer Preview) https://github.com/awslabs/aws-sdk-react-native
Attendees will walk away from the talk with knowledge of how a React Native application can interact with a few basic services written and deployed on AWS Lambda via the Serverless Framework. The data for the services will be retrieving from DynamoDB tables which will be also be orchestrated via the framework. We will also talk briefly about authentication in React Native with AWS Cognito and how it can be setup as an auth solution for storing and accessing user data in Cognito attributes as well as data stored in DynamoDB and S3.
The focus will be on delivering the data via an AWS Lambda written in Node.js using the Serverless framework for automation and accessing from React Native. Additional service interaction as mentioned above will be added for demo purposes.
AWS Lambda’s are containerized functions run to perform compute and then destroyed. They are used to deliver the data for a users’ request directly from the AWS Lambda or via AWS API Gateway.