Spring Cloud Function 3.0.0.M2 release

Spring Cloud Function 3.0.0 second milestone release, and from milestone warehouse acquisition.

Spring Cloud Function  is a new program from the Pivotal Spring team, which is committed to promoting the development of a function as the main unit. The project provides a general model for a variety of platforms to deploy software-based functions, including FaaS like Amazon AWS Lambda (function as a service, function as a service) platform.

The main updates:

Function (multi-input / output)

One of the greatest features of this milestone is incorporated support having a plurality of inputs and outputs. A point worth noting that this feature is only meaningful in the reaction scheme, a plurality of streams to function, in order to perform certain types of polymer / merge operations on such flow.

To represent a plurality of input / output type-safe manner, in order to benefit from the type of conversion and other features previously mentioned, the team chose Tuple library from the reactor project, as spring-cloud-function from the outset, as it a dependency.

This feature is new and is being enhanced, it has been used by a small number of internal projects.

Programming style selection - reaction formula imperative

As before, the function may be a way to force or reaction is achieved by the project reactor. However, in previous versions, always using a conversion function is applied reactive imperative style to achieve. In this version, no longer the case. A function can be imperative manner as is (imperative) or passively find and call.

Transparent type input and output conversion

One of the new features of this milestone is the functional core of transparent type conversion, so although some of them already exist in the Web adapter, it can now be used on the function call level, allowing the user to any type of function (not just web) from benefit.

For example, assume the following functions: Function <Foo, Foo> foo () and Function <Bar, Bar> bar () Composition foo | bar. Although, it does not work in previous versions, in the case of a given type between the output and the input of another incompatible, but now support the provision of appropriate conversion strategy.

Functional structure and adaptation

Although the new functionality is not Spring Cloud Function combination, but it has been improved by this milestone.

As before, you can still by "|" or "," character combination function. You can now use different programming styles (e.g., reaction and imperative) combined functions. You can also write a function of input and output functions of the user function developer does not match. All these will be the adaptation and conversion.

Details can be found Announcement: https://spring.io/blog/2019/08/15/announcing-spring-cloud-function-3-0-0-m2

Guess you like

Origin www.oschina.net/news/109131/spring-cloud-function-3-0-0-m2-released