An open API service indexing awesome lists of open source software.

https://github.com/zviryatko/golang-serverless-websocket-lambda

Serverless example of AWS Lambda + Golang + Api Gateway Websocket + DynamoDB
https://github.com/zviryatko/golang-serverless-websocket-lambda

dynamodb example golang lambda serverless websocket

Last synced: 10 months ago
JSON representation

Serverless example of AWS Lambda + Golang + Api Gateway Websocket + DynamoDB

Awesome Lists containing this project

README

          

# Example of Serverless + AWS Lambda + Golang + Websockets + DynamoDB

This is an example of a Serverless project that uses AWS Lambda and Golang to create a Websocket through AWS API Gateway and stores sessions in AWS DynamoDB.

## Requirements

- [Serverless](https://serverless.com/)
- [Golang](https://golang.org/)
- [AWS Account](https://aws.amazon.com/)
- [AWS CLI](https://aws.amazon.com/cli/)

## Deploy

1. Clone this repository
2. Run `make deploy` to deploy AWS Stack

## Usage

Open from different terminals `wscat -c wss:///dev`
Or connect to Websocket from different browser tabs.