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:
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:
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