hands-on lab

Build and Deploy a Highly Scalable Serverless CRUD Microservice With the Serverless Framework

Difficulty: Intermediate
Duration: Up to 1 hour
Students: 183
Rating: 4.5/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

When it comes to the need to design, build and create a microservice, the CRUD paradigm is one of the most used and followed. CRUD stands for Create - Read - Update - Delete. These are the most common operations made on a database. Regardless of the kind of microservice you want to deploy, creating a serverless application could be a time saving and cost saving task. Because of that, the Serverless Framework can help you define, create and deploy your serverless functions. It offers also another great feature: resources creation. Regardless of the cloud provider you are leveraging, the Serverless Framework allows you to define resources such as databases and queues, following the pattern it's usually referred to as IaC (Infrastructure as Code).

In this lab, you will build and create a serverless CRUD microservice on AWS that will leverage a DynamoDB table as per the target of the operations. You will deploy the DynamoDB table through the Serverless Framework.

Learning Objectives

Upon completion of this lab you will be able to:

  • Build and deploy a microservice through the Serverless Framework
  • Define and deploy cloud resources directly using the Serverless Framework

Intended Audience

This lab is intended for:

  • Software engineers mainly focused on serverless development
  • Cloud architects that look for a framework that lets them deploy applications and cloud resources

Prerequisites

To get the most from this lab, you should have basic knowledge of the Serverless Framework and DynamoDB. To get ready, you can use the following labs:

Updates

September 10th, 2024 - Resolved serverless deploy issue

Environment before

Environment after

Covered topics

Lab steps

Initializing a Project Using the Serverless Framework
Building and Deploying the CRUD Microservice Using the Serverless Framework
Testing the Microservice You Just Deployed