All Projects → linux-china → spring-cloud-function-demo

linux-china / spring-cloud-function-demo

Licence: other
Spring cloud function with RSocket

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to spring-cloud-function-demo

r2dbc-proxy
R2DBC Proxying Framework
Stars: ✭ 108 (+369.57%)
Mutual labels:  r2dbc
netifi-quickstart-java
Project to assist you in getting started using Netifi.
Stars: ✭ 23 (+0%)
Mutual labels:  rsocket
spring-demo
Demo application for Netifi Proteus and RSocket. The guideline is available here ->
Stars: ✭ 24 (+4.35%)
Mutual labels:  rsocket
r2dbc-migrate
R2DBC database migration tool & library
Stars: ✭ 83 (+260.87%)
Mutual labels:  r2dbc
rsocket-rpc-js
Standard RSocket RPC Implementation
Stars: ✭ 29 (+26.09%)
Mutual labels:  rsocket
Rsocket Java
Java implementation of RSocket
Stars: ✭ 2,099 (+9026.09%)
Mutual labels:  rsocket
scalecube-js
Toolkit for working in microservices/micro-frontends architecture.
Stars: ✭ 63 (+173.91%)
Mutual labels:  rsocket
a-feign-like-rsocket-client
@Mario5Gray had a great idea - a Feign for RSocket. So, here it is.
Stars: ✭ 20 (-13.04%)
Mutual labels:  rsocket
spring-boot-rsocket
Plain Spring Boot RSocket Starter
Stars: ✭ 26 (+13.04%)
Mutual labels:  rsocket
springboot-rsocketjwt-example
Example of using JWT with RSocket and Spring Boot
Stars: ✭ 26 (+13.04%)
Mutual labels:  rsocket
Jetlinks Community
JetLinks 基于Java8,Spring Boot 2.x ,WebFlux,Netty,Vert.x,Reactor等开发, 是一个全响应式的企业级物联网平台。支持统一物模型管理,多种设备,多种厂家,统一管理。统一设备连接管理,多协议适配(TCP,MQTT,UDP,CoAP,HTTP等),屏蔽网络编程复杂性,灵活接入不同厂家不同协议等设备。实时数据处理,设备告警,消息通知,数据转发。地理位置,数据可视化等。能帮助你快速建立物联网相关业务系统。
Stars: ✭ 2,405 (+10356.52%)
Mutual labels:  r2dbc
Hsweb Framework
hsweb (haʊs wɛb) 是一个基于spring-boot 2.x开发 ,首个使用全响应式编程的企业级后台管理系统基础项目。
Stars: ✭ 7,724 (+33482.61%)
Mutual labels:  r2dbc
ecommerce-microservices-spring-reactive-webflux
E-commerce demo with spring reactive webflux and spring cloud microservice
Stars: ✭ 107 (+365.22%)
Mutual labels:  r2dbc
cf-butler
My purpose in life is to cleanup stale apps and services on a Cloud Foundry foundation. I can be configured to report on and remove orphaned services and stopped app instances older than a configurable duration. I do many other useful things too.
Stars: ✭ 31 (+34.78%)
Mutual labels:  r2dbc
lc-spring-data-r2dbc
An extension of spring-data-r2dbc to provide features such as relationships, joins, cascading save/delete, lazy loading, sequence, schema generation, composite id
Stars: ✭ 30 (+30.43%)
Mutual labels:  r2dbc
mybatis-r2dbc
MyBatis R2DBC Adapter
Stars: ✭ 121 (+426.09%)
Mutual labels:  r2dbc
spring-r2dbc-sample
Code samples for demonstrating R2dbc, Spring R2dbc, and Spring Data R2dbc.
Stars: ✭ 105 (+356.52%)
Mutual labels:  r2dbc

Spring Cloud Function with RSocket

Expose cloud function with REST API & RSocket with R2DBC as backend.

Function signatures

  • RPC: Function<String, Mono>, Function<Mono, Mono>

public Function<String, String> uppercase() {
   return value -> value.toUpperCase();
}

public Function<Flux<String>, Flux<String>> reactiveUpperCase() {
	return flux -> flux.map(val -> val.toUpperCase());
}
  • request/stream: Function<String, Flux>
  • fire_and_forget/metadataPush: Function<String, Void>
public Consumer<Person> log() {
    return person -> {
        System.out.println("Received: " + person);
    };
}
	
public Function<Flux<?>, Mono<Void>> log() {
	return flux -> flux.map(..).filter(..).then();
}
  • channel: Function<Flux>, Flux

Demo function

@Controller
public class Greeter implements Function<String, Mono<String>> {

    @Override
    @MessageMapping("greeter")
    public Mono<String> apply(String name) {
        return Mono.just("Hello " + name);
    }
}

References

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].