This is a sandbox project for demonstrating Reactive Streams support in Spring framework and its ecosystem.
- Reactive Programming with Spring 5(Deprecated)
- Accessing Neo4j with SDN Rx
- Accessing RDBMS with Spring Data R2dbc
The following table list all sample codes related to the above posts.
name | description |
---|---|
vanilla | The initial application, includes basic spring-webflux feature, use a main class to start up the application |
vanilla-jetty | Same as vanilla, but use Jetty as target runtime |
vanilla-tomcat | Same as vanilla, but use Reactor Netty as target runtime |
vanilla-undertow | Same as vanilla, but use Undertow as target runtime |
java9 | Same as vanilla, Java 9 Flow API support is not ready in Spring 5.0.0.REALESE, planned in 5.0.1, see issue SPR-16052 and the original discussion on stackoverflow |
rxjava | Same as vanilla, but use Rxjava instead of Reactor |
rxjava-jdbc | Accessing database with rxjava-jdbc |
rxjava2 | Same as vanilla, but use Rxjava2 instead of Reactor |
rxjava2-jdbc | Accessing database with rxjava2-jdbc |
war | Replace the manual bootstrap class in vanilla with Spring ApplicationInitializer , it can be packaged as a war file to be deployed into an external servlet container. |
routes | Use RouterFunction instead of controller in vanilla |
register-bean | Programmatic approach to register all beans in ApplicatonContext at application bootstrap |
data-mongo | Spring Data Mongo Reactive demo |
data-mongo-pageable | Spring Data Mongo Reactive demo with pagiation support |
data-mongo-transaction | Spring Data Mongo Reactive demo with Transaction support |
data-redis | Spring Data Redis Reactive demo |
data-redis-message | Spring Data Redis Reactive Example with ReactiveRedisMessageListenerContainer |
data-cassandra | Spring Data Cassandra Reactive demo |
data-couchbase | Spring Data Couchbase Reactive demo |
security | Based on vanilla, add Spring Security Reactive support |
security-form | Same as secuirty, login form example |
security-user-properties | Same as secuirty, but use users.properties to store users |
security-method | Replace URI based configuration with method level constraints |
security-data-mongo | Based on data-mongo and security, replace with dummy users in hard codes with Mongo driven store |
multipart | Mutipart request handling and file uploading |
multipart-data-mongo | Multipart and file uploading, but data in Mongo via Spring Data Mongo Reactive GridFsTemplate |
mvc-thymeleaf | Traditional web application, use Thymeleaf as template engine |
mvc-mustache | Traditional web application, use Mustache as template engine |
mvc-freemarker | Traditional web application, use freemarker as template engine |
sse | Server Send Event example |
websocket | WebSocket example |
web-filter | WebFilter example |
groovy | Same features as boot, but written in groovy |
client | Demonstration of WebClient to shake hands with backend reactive APIs |
kotlin | Same features as boot, but written in kotlin |
kotlin-gradle | Use kotlin functional approach to declare beans and bootstrap the application programatically |
session | Spring Session Example |
session-header | Spring Session WebSessionIdResolver Example |
session-data-redis | Spring Data Reids based ReactiveSessionRepository Example |
session-data-mongo | Spring Data Mongo based ReactiveSessionRepository Example |
name | description |
---|---|
boot | Switch to Spring Boot to get autoconfiguration of Spring WebFlux |
boot-jetty | Same as boot, but use Jetty as target runtime |
boot-tomcat | Same as boot, but use Tomcat as target runtime |
boot-undertow | Same as boot, but use Undertow as target runtime |
boot-routes | Use RouterFunction instead of the general Controller in boot |
boot-freemarker | Same as mvc-freemarker, but based on Spring Boot |
-
Reactive Streams, official Reactive Streams website
-
Understanding Reactive types, Spring.IO
-
The WebFlux framework, Spring Framework Reference Documentation
-
Reactor Core 3.0 becomes a unified Reactive Foundation on Java 8, Spring.IO
-
Reactive Spring, Spring.IO
-
Three parts of Notes on Reactive Programming by Dave Syer:
-
Kotlin extensions for MongoOperations and ReactiveMongoOperations
Specials thanks for Jetbrains's support by contributing an open-source license.