From 6faa9c8abef55cf340a18874ac64bdaa4931d913 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Tue, 30 Apr 2019 08:54:31 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- sagan-index.html | 202 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 202 insertions(+) create mode 100644 sagan-index.html diff --git a/sagan-index.html b/sagan-index.html new file mode 100644 index 000000000..439bfff3c --- /dev/null +++ b/sagan-index.html @@ -0,0 +1,202 @@ + + + + + + + +Features + + + + + + + + + +
+
+
+
+

Spring Cloud Function is a project with the following high-level goals:

+
+
+
    +
  • +

    Promote the implementation of business logic via functions.

    +
  • +
  • +

    Decouple the development lifecycle of business logic from any specific runtime target so that the same code can run as a web endpoint, a stream processor, or a task.

    +
  • +
  • +

    Support a uniform programming model across serverless providers, as well as the ability to run standalone (locally or in a PaaS).

    +
  • +
  • +

    Enable Spring Boot features (auto-configuration, dependency injection, metrics) on serverless providers.

    +
  • +
+
+
+

It abstracts away all of the transport details and infrastructure, allowing the developer to keep all the familiar tools and processes, and focus firmly on business logic.

+
+
+
+
+

Features

+
+
+

Spring Cloud Function features:

+
+
+
    +
  1. +

    Wrappers for @Beans of type Function, Consumer and +Supplier, exposing them to the outside world as either HTTP +endpoints and/or message stream listeners/publishers with RabbitMQ, Kafka etc.

    +
  2. +
  3. +

    Compiling strings which are Java function bodies into bytecode, and +then turning them into @Beans that can be wrapped as above.

    +
  4. +
  5. +

    Deploying a JAR file containing such an application context with an +isolated classloader, so that you can pack them together in a single +JVM.

    +
  6. +
  7. +

    Adapters for AWS Lambda, Microsoft Azure, Apache OpenWhisk and possibly other "serverless" service providers.

    +
  8. +
+
+
+

Here’s a complete, executable, testable Spring Boot application (implementing a simple string manipulation):

+
+
+
+
@SpringBootApplication
+public class Application {
+  public static void main(String[] args) {
+    SpringApplication.run(Application.class, args);
+  }
+
+  @Bean
+  public Function<Flux<String>, Flux<String>> uppercase() {
+    return flux -> flux.map(value -> value.toUpperCase());
+  }
+}
+
+
+ +
+
+
+ + + + + + + \ No newline at end of file