Sarah started her talk speaking about the Vue Cookbook which was just released, which shows more in-depth Vue.js use cases. She then walked through two examples of using serverless functions. Serverless functions make it simple to scale our servers as needed, which can be very beneficial when we’re first pushing code into production.
Benefits of serverless, also known as Fucntions as a service or FAAS include::
Functions as a Service allow developers to focus on the business logic written as functions. It’s not good for all the things, so what are a few examples where it could easily be used?
In the talk Sarah shows how easy it is to use Azure to do functions as a service, but there are many other platforms who offer this.
Using Stripe, Vue.js, and Azure serverless functions Sarah shows us how to build a cart checkout application:
Inside the Vue.js app, she uses Vuex to manage state. She mentions that the easiest way to implement Stripe payments is by using vue-stripe-checkout, but with a little more configuration you can create a better UI with vue-stripe-elements-plus.
She also created a visualization for showing where her Microsoft colleagues are speaking around the world. This app uses serverless functions to fetch geolocation data for each event. Here’s her original article, demo and source.