Serverless Functions and Databases
Learn How to Connect and Query a Database via Serverless Functions
During application development, it is often required to connect to a database for data access. Since, using the Jamstack, we no longer have access to an origin server, we need to look for other ways to execute database queries.
One such way is to leverage serverless functions. And herein lies the problem. Often there's a misconception when it comes to these functions and how database connections should be managed.
In this short course, we focus on demystifying the misconceptions based around the need to create persistent database connections. Furthermore, we also examine another crucial aspect of working with serverless functions: managing payloads sent via the HTTP POST method.
The course will walk you through a sample app (created using Vue.js) where you get the opportunity to learn via hands-on examples how serverless functions can manage connections to a MongoDB Atlas cluster, how they can handle query parameters and POST payloads using the platform provided by Vercel.
Your Instructor
Tamas is a Google Developer Expert in Web Technologies and a Developer Evangelist. He has more than a decade of experience delivering technical training to large, prestigious organisations. Throughout his career, he has delivered presentations and training classes all over the world. His passionate about unlocking the latest & greatest features of web development.
Course Curriculum
-
StartDeploying a Vue.js App with Vercel CLI (10:12)
-
StartCreating a Serverless Function with Vercel (9:28)
-
StartConnecting a Serverless Function to MongoDB (5:27)
-
StartParameterised Serverless Function (7:57)
-
StartMedia Management for Optimal Performance (via Cloudinary) (5:17)
-
StartMedia Upload Capabilities (via Cloudinary) (6:24)
-
StartUtilising HTTP POST in a Serverless Function (7:01)
-
StartExtra Performance Considerations (7:22)
Frequently Asked Questions
Get started with the Jamstack today! Becoming hands-on with technologies and services being heavily utilised by Jamstack projects will give you first-class experience of the stack. You will gain valuable knowledge and be able to apply your newly gathered skills in different projects.