Giter Club home page Giter Club logo

januff / easy-easier-easiest-lambdas Goto Github PK

View Code? Open in Web Editor NEW
39.0 2.0 1.0 11.21 MB

Quickstarts for AWS Lambda (“serverless”) functions in React, with and without AWS tooling. Functions connect to a serverless Apache Cassandra database.

Home Page: https://januff.github.io/easy-easier-easiest-lambdas/

HTML 21.23% CSS 24.25% JavaScript 51.71% Shell 2.81%
amplify amplify-cli netlify vercel vercel-serverless-functions apache-cassandra datastax database-as-a-service aws-lambda serverless jamstack nextjs create-react-app serverless-functions cassandra cassandra-database

easy-easier-easiest-lambdas's Introduction

AWS Lambdas: Easy, Easier, Easiest 🍳

Step-by-step serverless functions using Amplify, Netlify, and/or Vercel.

“Where AWS becomes overkill are typical JAMstack apps. A static site with lots of frontend logic. Hosting those on AWS is a pain whereas Netlify and Vercel make them a core feature.” -Swizec Teller, AWS, Vercel, Netlify, or Firebase? (Serverless Handbook, Feb 2021)

Back in the day, using AWS Lambdas in your Jamstack app could be a pain indeed (eg. for me, last year.) But these days Amazon's Amplify CLI has greatly simplified Lambda configuration, while Netlify and Vercel offer workflows that make Lambda setup even simpler.

This repo collects step-by-step deployment instructions for all three platforms. Where the steps occur on a web dashboard or a CLI, I've included screencast GIFs to illustrate the interaction. (In a companion essay on Medium, I appraise the platforms for a comic book translation app I'm developing.)

AWS Lambda Quickstarts ⏲️

Amplify CLI With Create React App

📔 Amplify Step-by-Step ➡️

📖 Official Amplify Docs: Functions Overview

Netlify With Create React App

📔 Netlify Step-by-Step ➡️

📖 Official Netlify Docs: Netlify Functions

Vercel With Next.js

📔 Vercel Step-by-Step ➡️

📖 Official Vercel Docs: Serverless Functions

Apache Cassandra-as-a-Service 👩‍🚀

The database package in the installation and authentication steps is DataStax's @astra/collections JavaScript library, which I'm using to connect to a Cassandra NoSQL database, newly accessible as a pay-as-you-go serverless resource. (Free DataStax account required.)

📔 Astra Step-by-Step ➡️

Some Helpful Explanations 💬

for SERVERLESS

“You can use Serverless Functions to solve (almost) any backend needs you have without deploying and maintaining a server yourself.” -James Q. Quick, Serverless Functions, Netlify vs Vercel, and the Jamstack (YouTube, Dec 10 2020)

[+]

“When serverless started, it was about making the lives of backend developers easier. As it’s progressing, we’re seeing more frontend focused teams using serverless to build APIs and access data that wasn’t easily accessible. Serverless is going mainstream.” -Matt Biilmann, Interview with Matt Biilmann, CEO and co-founder, Netlify (Jaxenter, Feb 16 2021)

for JAMSTACK

“For static content, everything is prebuilt and cached. For dynamic content, companies build microservices that are loaded on demand and that can scale easily.” -Romain Dillet, Cloudflare is testing a Netlify competitor to host Jamstack sites (TechCrunch, Dec 7 2020)

“You effectively remove the performance tradeoff of serverless because static elements of the website are pre-rendered, and then a serverless backend is delivered either via APIs or right from the network edge in response to request/response logic.” -Matt Biilmann, Interview with Matt Biilmann, CEO and co-founder, Netlify (Jaxenter, Feb 16 2021)

for VERCEL

“Unlike Netlify, Vercel simplifies its serverless function signature by only accepting requests and responses as parameters, which is achieved by wrapping the original AWS Lambda environment and simplifying it only for serving content purposes. Brilliant idea!” -Emrah Samdan, Why do companies invent their own serverless functions? (Thundra Blog, Jul 2020)

easy-easier-easiest-lambdas's People

Contributors

januff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

chschaitanya

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.