AWSTemplateFormatVersion: ‘2010-09-09’ Description: A stack that creates the resources required to complete the Amazon API Gateway WebSocket tutorial. Resources: ConnectionsTable:
Category: API Gateway
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
AWS Websocket notes
WSCAT – utility is a convenient tool for testing a WebSocket API Tutorial: Building a serverless chat app with a
API gateway to SQS
By introducing the SQS queue in front of Lambda, you create an asynchronous connection between the API request and Lambda.
Accepting API keys as a query string in Amazon API Gateway
Amazon blog This blog explains how to build an API Gateway REST API that temporarily accepts API keys as query
Server side events
Event Source API An EventSource instance opens a persistent connection to an HTTP server, which sends events in text/event-stream format. The connection remains open until closed by calling EventSource.close().
Websocket
AWS serverless documentation Authorization Using API Gateway blog Iam Role Events handled by CreateSocket labmda: Connect Do Not Message the
AWS API
Calling a new API Gateway for lambda Create API key from console Require API key on a method Add Usage