Whether running a stateful application on Serverless or just passing data from one function to another, there are two ways to utilize our Serverless Document Store:
Passing data between functions– Can pass data between different functions within the same environment. For example, the first function manipulates and stores the data, while the next function takes the data then displays it as a web page.
Passing data between invocations– This allows storing data and passing it on to the next function invocation. For example, you can set a counter that adds one every time a function is called to calculate averages based on the number of invocations