AWS Lambda
Among serverless architectures offered by cloud providers, AWS Lambda is the most popular and has some advanced features.
FaaS/serverless is a natural evolution from microservices, or we may think of it as an extension to the microservices architecture. In many scenarios, we can complement our microservices architecture with functions or Lambda. If you are already an AWS customer, it is completely natural to move your codes from EC2 to Lambda and save a lot of money. The following diagram illustrates a simple use case that usesAWS Lambda together with S3 Buckets and DynamoDB:
Figure 3.1: A simple use case of using Lambda function on AWS
In S3, there is a way to trigger the event to a specific endpoint. We put the endpoint of our Lambda function there. After users upload or make changes to the S3 bucket, it will trigger to send an invocation request to the Lambda function. This could be thought of as a form of WebHooks. After that, the Lambda function receives the event and starts...