Git Product home page Git Product logo

serverless's Introduction

serverless

Seeing how far I can take the whole "serverless" magic

Server-what?

You've probably heard about this trend now. Servers are so last decade. The future (ok I'm exaggerating a little) is all about being serverless.

No more managing servers, or provisioning, or making sure that you're utilizing the cores on your provisioned machines to the full.

The plan

Use as many off the shelf tools to make a simple guest book where people can enter their name, and a cute message (although knowing the harsh internet it'll turn in to a troll fest in no time). Don't involve a server, ever.

Static Content Hosting

For hosting the static content, I chose Firebase hosting. I would have loved to simply use GCS, and not involve Firebase at all, but GCS doesn't let one serve HTTPS end to end for custom domains, and we're not trying to have a less than fort knox secure experience here, because guest books are important.

This document will walk you through setting up a static website with Firebase hosting, and serve it on your custom domain with end to end HTTPS.

Note: I am not a Javascript developer, this is my first time using Node, and my whole goal was to minimize the amount of Javascript or Node things I have to do (and use Python instead).

Functions, Or You Know, Real Work

Google Cloud Functions! For actually doing the "work" on this website, I chose Google Cloud Functions. Using app engine to actually do the work would be cheating, and Cloud Functions are serverless, so perfect fit!

This document will walk you through setting up a cloud function that accepts the names for the guest book, and the message, and stores them.

Edge computing

I couldn't not talk about the other buzz phrase - "Edge Computing". Having been a long time Cloudflare customer, I actually helped them Beta Test and launch Cloudflare workers, an awesome solution for "edge computing", taking this serverless stuff to a whole other level. Unfortunately, for the purpose of this project, I can't afford to pay for Cloudflare or for Workers, so you'll just need to imagine that I used workers to do something funky, and I'll explain workers and some examples in this doc. Here's a fun news release about me using workers in the mean time ;)

serverless's People

Contributors

aabhassharma avatar

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.