# spring-cloud-function-demo **Repository Path**: yojhon/spring-cloud-function-demo ## Basic Information - **Project Name**: spring-cloud-function-demo - **Description**: 从github clone 原地址:https://github.com/linux-china/spring-cloud-function-demo/ - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-16 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Spring Cloud Function with RSocket ================================== Expose cloud function with REST API & RSocket with R2DBC as backend. # Function signatures * RPC: Function> * request/stream: Function> * fire_and_forget/metadataPush: Function * channel: Function>, Flux # Demo function ```java @Controller public class Greeter implements Function> { @Override @MessageMapping("greeter") public Mono apply(String name) { return Mono.just("Hello " + name); } } ``` # References * Spring Cloud Function: https://spring.io/projects/spring-cloud-function * Spring Cloud Function Docs: https://cloud.spring.io/spring-cloud-static/spring-cloud-function/3.0.0.RELEASE/reference/html/index.html * Spring Data R2DBC: https://spring.io/projects/spring-data-r2dbc