The topic of the scheduled launch of lambda functions is quite relevant for AWS serverless solutions. Nowadays, almost all projects use the same approach, and even though it works it is far from the optimal approach. In this article, we will consider alternatives and define which option will work best in practice.

For the purposes of illustration, let’s take a look at architectures of the following type:

  1. User
  2. API GW
  3. Lambda functions

There is a mobile application designed to book rooms in hotels. Also, the application functionality allows for keyless access to the room.

A back-end developer is expected to prepare the following:

  1. An API for creating and managing reservations.
  2. Checking the arrival of the client within 2 hours from the start of the reservation.
  3. Activation of the client’s key right at the start of the reservation.

The serverless solution means that the system has no initiator, and we need to somehow run the function to activate the key or cancel the reservation. Most often, CloudWatch rules are used for such tasks.

#aws #aws-lambda #amazon-web-services #lambda #cloudwatch

An Introduction to the AWS Scheduled Lambda Function
1.20 GEEK