Keeping track of your application’s database is not an easy task. Database schemas tend to mismatch in different environments, data in one of the databases may miss some crucial piece of data. Such occasions can be irritating, especially when caught in production.

The situation gets worse when the project is developed base on the microservice pattern. In this case, each of your services has its own database instance whose structure may differ from others’. So keeping track of your service’s databases can become a nightmare (See 6 Reasons to Version Control Your Database). Therefore it is useful if we can use database version control in the project.

In the previous article, I have introduced Building AWS Serverless applications with NX Dev Tools on a monorepo and the advances of Monorepo. In this article, I will step by step to apply Liquibase (database version control) to AWS Serveless application.

Read More

Serverless cursor-based pagination API on AWS
Cursor-based pagination on AWS

In this port, I’ll be guiding you on how to build an API with AWS Lambda and API Gateway to paginate data using the Serverless framework.

Technologies stack

  • AWS Lambda for running code without provisioning or managing servers. You can utilize free-tier to run your service with zero cost.
  • AWS API Gateway to create, publish, and secure Rest APIs.
  • Serverless framework to build and deploy your backend services on the cloud, you can build and deploy a serverless function in minutes.

Read More

Cloud Encryption

Security is one of 5 pillars of the Well-Architected framework, it can archive by applying best practices and principals in IAM, Encryption, Complician, and Governance. Of course, best practices aren’t enough, you need to learn more. In this post, I only share our best practices and tip when working with AWS SSM Parameter Store. By sharing our best practices, my hope is to encourage you to build and deploy secure and reliable applications and also giving us your feedback.

As you know, AWS Lambda supports native environment variables, you can easy to define and add any environment variables you want during deployment or change on the AWS Console Management. But using native environment variables contains some disadvantages:

Read More

NX, Serverless and Lambda for serverless architecture
NX, Serverless and Lambda for serverless architecture

A monorepo can be described as a repository that contains more than one logical project. These projects can be unrelated, loosely coupled or connected by dependency management tools, they are usually large in size, branches, commits, and working developers.

Serverless computing such as AWS Serverless offers a number of advantages over traditional cloud-based or server-centric infrastructure. For many developers, serverless architectures offer greater scalability, more flexibility, and quicker time to release, all at a reduced cost. With serverless architectures, developers do not need to worry about purchasing, provisioning, and managing backend servers.

This article will guide how to build AWS Serverless Application using Nx Dev Tool Extension and Serverless Framework.

Read More

Serverless Plugins Vscode

We are using the  Serverless framework for a couple of years and building a lot of applications. So I wanted to summarize and provide a brief description of some plugins that our team is using every day. I am not sure it is good for you, if you have any recommendations, just let us know.

If you haven’t yet checked out this list of Serverless Framework plugins, you’re missing out. Or you can read this post for a short version.

Don’t Reinvent The Wheel

Don’t build it again if someone else already built it and open-sourced it for you.”. It’s free to use and the community support that revolves around building, fixing, and maintenance.

Read More