Chapter 13. Improving development and testing

 

This chapter covers

  • Weighing the pros and cons of local development of Lambda functions
  • Logging and debugging your code
  • Using Lambda function versions and aliases
  • Presenting an overview of the most popular tools and framework for building serverless apps
  • Implementing a serverless testing framework for Lambda functions

In the previous chapter, you focused on the advantages and pitfalls of event-driven applications and distributed architectures, with a more theoretic approach than the previous chapters.

Now you return to hands-on experience to see how development and testing can be improved using more advanced AWS Lambda features, such as versioning and aliases, and specific tools and frameworks designed to support serverless development and testing.

13.1. Developing locally

A common question people ask when I introduce AWS Lambda is how to develop with a local environment. It’s easy to wrap a Lambda function with a few lines of code to allow local execution. If you use other AWS services in those functions, you may find tools that can emulate them locally. For example:

13.2. Logging and debugging

 
 

13.3. Using function versioning

 
 
 

13.4. Using aliases to manage different environments

 
 

13.5. Development tools and frameworks

 
 
 

13.6. Simple serverless testing

 

Summary

 

Exercise

 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage