AWSTemplateFormatVersion: ‘2010-09-09’ Description: A stack that creates the resources required to complete the Amazon API Gateway WebSocket tutorial. Resources: ConnectionsTable:
AWS Websocket Chat Example Notes
Resources: ConnectionsTable8000B8A1: Type: AWS::DynamoDB::Table Properties: KeySchema: – AttributeName: connectionId KeyType: HASH AttributeDefinitions: – AttributeName: connectionId AttributeType: S ProvisionedThroughput: ReadCapacityUnits: 5
Websocket simple nodejs examples
Here is an example of a complete Node.js script that listens for a response from a WebSocket server: const WebSocket
Update Lambda to Console
Tutorial video npm init npm -i –save (libraries) open in code, create handler function in index.js zip -r deploy.zip ./
Use indexedDB
Basics API usage
Elastic Search Pagination
Paginate search results Best practice API pagination ElasticSearch pagination techniques Deep pagination is one of the top performance killers for your cluster. Deep
React Notes
Isolate fetch using custome hook: To use this custom hook, you would simply import it into your component and call
Terraform notes
The definitive guide to using Terraform with the serverless framework Serverless pattern collection The entire Serverless Patterns Collection is also
AWS Best practices
Best practices for organizing larger serverless applications Best Practices for Designing Amazon API Gateway Private APIs and Private Integration HTTP
AWS Nodejs Load Credential from JSON
Load crendentials from json file Set up a config.json as follows: { “accesskeydId”: “”, “secretAccessKey”: “”, “sessionToken”:””, “securityToken”: “”, “region”:”us-west-2″