All Projects → serverless-components → Realtime App

serverless-components / Realtime App

Licence: other
Deploy a serverless realtime app built on AWS Lambda using Serverless Components.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Realtime App

Bless
Repository for BLESS, an SSH Certificate Authority that runs as a AWS Lambda function
Stars: ✭ 2,627 (+778.6%)
Mutual labels:  aws, serverless, lambda
Aws Serverless Samfarm
This repo is full CI/CD Serverless example which was used in the What's New with AWS Lambda presentation at Re:Invent 2016.
Stars: ✭ 271 (-9.36%)
Mutual labels:  aws, serverless, lambda
Aws Lambda Power Tuning
AWS Lambda Power Tuning is an open-source tool that can help you visualize and fine-tune the memory/power configuration of Lambda functions. It runs in your own AWS account - powered by AWS Step Functions - and it supports three optimization strategies: cost, speed, and balanced.
Stars: ✭ 3,040 (+916.72%)
Mutual labels:  aws, serverless, lambda
Aws Etl Orchestrator
A serverless architecture for orchestrating ETL jobs in arbitrarily-complex workflows using AWS Step Functions and AWS Lambda.
Stars: ✭ 245 (-18.06%)
Mutual labels:  aws, serverless, lambda
Aws Auto Cleanup
Open-source application to programmatically clean your AWS resources based on a whitelist and time to live (TTL) settings
Stars: ✭ 276 (-7.69%)
Mutual labels:  aws, serverless, lambda
Aws Lambda Fastify
Insipired by aws-serverless-express to work with Fastify with inject functionality.
Stars: ✭ 190 (-36.45%)
Mutual labels:  aws, serverless, lambda
Komiser
☁️ Cloud Environment Inspector 👮🔒 💰
Stars: ✭ 2,684 (+797.66%)
Mutual labels:  aws, serverless, lambda
Serverlessish
Run the same Docker images in AWS Lambda and AWS ECS
Stars: ✭ 177 (-40.8%)
Mutual labels:  aws, serverless, lambda
Streamalert
StreamAlert is a serverless, realtime data analysis framework which empowers you to ingest, analyze, and alert on data from any environment, using datasources and alerting logic you define.
Stars: ✭ 2,634 (+780.94%)
Mutual labels:  aws, serverless, lambda
Serverless Analytics
Track website visitors with Serverless Analytics using Kinesis, Lambda, and TypeScript.
Stars: ✭ 219 (-26.76%)
Mutual labels:  aws, serverless, lambda
Realworld Dynamodb Lambda
λ serverless backend implementation for RealWorld using AWS DynamoDB + Lambda
Stars: ✭ 185 (-38.13%)
Mutual labels:  aws, serverless, lambda
Algnhsa
AWS Lambda Go net/http server adapter
Stars: ✭ 226 (-24.41%)
Mutual labels:  aws, serverless, lambda
Components
The Serverless Framework's new infrastructure provisioning technology — Build, compose, & deploy serverless apps in seconds...
Stars: ✭ 2,259 (+655.52%)
Mutual labels:  aws, serverless, lambda
Aws Auto Remediate
Open source application to instantly remediate common security issues through the use of AWS Config
Stars: ✭ 191 (-36.12%)
Mutual labels:  aws, serverless, lambda
Eventstormingworkshop
EventStorming workshop, this is a hands-on workshop. Contains such topics: DDD, Event storming, Specification by example. Including the AWS product : Serverless Lambda , DynamoDB, Fargate, CloudWatch.
Stars: ✭ 184 (-38.46%)
Mutual labels:  aws, serverless, lambda
Aws Mobile React Native Starter
AWS Mobile React Native Starter App https://aws.amazon.com/mobile
Stars: ✭ 2,247 (+651.51%)
Mutual labels:  aws, serverless, lambda
Aws Serverless Appsync App
This workshop shows you how to build a Web Application that demonstrates how easy it is to create data driven web applications all with no servers. You will build a serverless web application that lets users search for popular tourist destinations. The application will use AWS AppSync and the AWS Serverless platform to provide real-time weather analysis of the indexed destinations.
Stars: ✭ 162 (-45.82%)
Mutual labels:  aws, serverless, lambda
Sqs Worker Serverless
Example for SQS Worker in AWS Lambda using Serverless
Stars: ✭ 164 (-45.15%)
Mutual labels:  aws, serverless, lambda
Serverless Slack App
A Serverless.js Slack App Boilerplate with OAuth and Bot actions
Stars: ✭ 217 (-27.42%)
Mutual labels:  aws, serverless, lambda
Serverless Chrome
🌐 Run headless Chrome/Chromium on AWS Lambda
Stars: ✭ 2,625 (+777.93%)
Mutual labels:  aws, serverless, lambda

Serverless Components

 

Deploy a Full-Stack Realtime App in seconds using Serverless Components. Just provide your frontend code (powered by the website component), and your backend code (powered by the socket component).

Great use-cases for this project are: Chat Apps, Bots, Notification Systems, Charting Dashboards, Stock Tickers & more. As always, consider a serverless stack like this if you are looking to deliver software or features with extremely low overhead.

 

  1. Install
  2. Create
  3. Configure
  4. Deploy
  5. Example
  6. Pricing

 

1. Install

$ npm install -g serverless

2. Create

$ mkdir my-realtime-app && cd my-realtime-app

the directory should look something like this:

|- backend
  |- socket.js
|- frontend
  |- index.html
|- serverless.yml
|- .env      # your AWS api keys

# .env
AWS_ACCESS_KEY_ID=XXX
AWS_SECRET_ACCESS_KEY=XXX

the socket.js file should minimally look something like this:

on('default', async (data, socket) => {
  socket.send(data)
})

For more info on working with the socket.js file, check out the socket component docs.

To see a full example of an application built with this, check out this Chat Application.

3. Configure

# serverless.yml

RealtimeApp:
  component: "@serverless/realtime-app"
  inputs:
    # backend config to be passed to the socket component
    backend:
      code:
        root: ./code # The root folder containing the backend code.
        src: dist # The folder within your 'src' directory containing your built artifacts
        hook: npm run build # A hook to build/test/do anything
      memory: 128
      timeout: 10
      env:
        TABLE_NAME: my-table

    # frontend config to be passed to the website component
    frontend:
      code:
        root: ./ # The root folder of your website project.  Defaults to current working directory
        src: ./src # The folder to be uploaded containing your built artifact
        hook: npm run build # A hook to build/test/do anything to your code before uploading
      env: # Environment variables to include in a 'env.js' file with your uploaded code.
        API_URL: https://api.com
    region: us-east-1

4. Deploy

$ serverless

5. Example

You can see a full Chat Application that uses this Component in the example folder. It leverages AWS DynamoDB to maintain state of who is connected, so that messages can be sent out to the appropriate connection IDs.

You can also see how this Component can be used programmatically in the Chat App Component's source code.

6. Pricing

AWS API Gateway Websockets Pricing https://aws.amazon.com/api-gateway/pricing/#WebSocket_APIs

AWS Lambda Pricing https://aws.amazon.com/lambda/pricing/

 

New to Components?

Checkout the Serverless Components repo for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].