Building distributed applications with step functions

The whole idea behind step functions is to make it easier for developers to write and orchestrate multiple Lambda functions with ease. This comes in really handy when you have a really large number of Lambda functions, each performing a very specific task, and you wish to coordinate the actions among them. In this scenario, we will be taking our monolithic calculator example code from the earlier deployed SAM template and re-engineer it to work with Step Functions. To begin with, let us examine the Lambda functions that we have created for this scenario. First up, are the basic addition, subtraction, and multiplication functions that all follow the same code as shown below:

 'use strict'; ...

Get Mastering AWS Lambda now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.