GithubHelp home page GithubHelp logo

lvqthuong / spring-reactive-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hantsy/spring-reactive-sample

0.0 1.0 0.0 1.17 MB

Spring 5 Reactive playground

License: GNU General Public License v3.0

Java 87.09% Kotlin 6.84% Groovy 3.26% FreeMarker 0.64% HTML 1.96% CSS 0.02% JavaScript 0.02% TSQL 0.16%

spring-reactive-sample's Introduction

Spring Reactive Sample

This is a sandbox project for demonstrating Reactive Streams support in Spring framework and its ecosystem.

Related Posts

Sample Codes

The following table list all sample codes related to this post. The sample codes of this post is hosted on my Github account, welcome to star and fork it.

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-reactor-netty Same as vanilla, but use Reactor Netty as target runtime
vanilla-reactor-netty 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
rxjava2 Same as vanilla, but use Rxjava2 instead of Reactor
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 Demonstration of Spring Data Mongo reactive support
data-redis Demonstration of Spring Data Redis reactive support
data-cassandra Demonstration of Spring Data Cassandra reactive support
data-couchbase Demonstration of Spring Data Couchbase reactive support
security Based on vanilla, add secuirty for spring webflux support
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 (PENDING)Multipart and file uploading, but data in Mongo via Spring Data Mongo, waitng for Reactive support for GridFsTemplate
mvc-thymeleaf Traditinal web mvc application, use Thymeleaf specific Reactive view resolver to render view
mvc-freemarker Traditinal web mvc application, use freemarker as template engine, currently it does not have a reactive view resolver
sse Server Send Event and json stream example
websocket Reactive WebSocket example
boot Switch to Spring Boot to get autoconfiguration of spring-webflux, added extra Spring Data Mongo, Spring Security support
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
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 (WIP)More features will be added here

References

Thanks

I appreciate all contribution from the community, not limited to reporting bugs, filing an issue, etc.

Specials thanks for Jetbrains's support by contributing an open-source license.

spring-reactive-sample's People

Contributors

hantsy avatar silasmahler avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.