Given n asynchronous tasks, these n asynchronous tasks must be executed sequentially, and each subsequent task depends on the result of the previous one as its parameter. How do we implement this?
Currying is a feature common to functional languages such as Perl, Python, and JavaScript. This post uses JavaScript to illustrate the idea of currying and its applications.
In the new container context, corresponding principles and patterns help us better build "cloud-native" applications. As we will see, these principles and patterns are not a wholesale overturning of previous patterns; rather, they are evolutionary versions adapted to a new environment.