Service

Within the AWS Lambda function, although you can perform any backend action, the following are the most common ones that most customers perform:

  • Do the entire processing within the AWS Lambda function, which may involve data processing to transformation, local scripts execution, and so on, and finally the result is stored in a data store for long-term persistence. A perfect choice for lots of customers in this scenario is Amazon DynamoDB, which again extends the serverless architecture with no host to manage and is easy to integrate with AWS Lambda with API/SDKs.
  • For interacting with another third-party external service or even another microservice within the same environment, many customers use AWS Lambda to invoke those other services. These invocations can be synchronous or asynchronous, depending on the use case.
  • Another possibility here is to integrate with other cloud services to perform some other actions. As an example, suppose you want to trigger a LAMP stack creation using an API, so in this case you could invoke CloudFormation from your Lambda code to bring up a new LAMP stack environment.

These are just examples on how to create serverless microservices in AWS, but generally the possibilities are infinite.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset