Write functions to be stateless
Functions should be stateless and idempotent1 if possible. Associate any required state information with your data. For example, a Fee Adjustment being processed would likely have an associated state member. A function could process an order based on that state while the function itself remains stateless.
Idempotent functions are especially recommended with…
Continue Reading Laura Brewer’s Article on their blog
Blog Syndicated with Laura Brewer’s Permission