Coder Social home page Coder Social logo

Comments (6)

kaqqao avatar kaqqao commented on May 20, 2024

The current starter doesn't yet support subscriptions in conjunction with WebFlux. If I'm not mistaken, that's what you meant by Spring reactive, right?
Subscriptions currently only work with Spring MVC (i.e. non-reactive apps).

from graphql-spqr-spring-boot-starter.

safaksahin avatar safaksahin commented on May 20, 2024

Yes, i meant spring reactive. Thanks :)

from graphql-spqr-spring-boot-starter.

Andrulez avatar Andrulez commented on May 20, 2024

@kaqqao Could you please add more detail to your explanation? This exapmle uses projectreactor for subscription demo but you write "The current starter doesn't yet support subscriptions in conjunction with WebFlux".

from graphql-spqr-spring-boot-starter.

kaqqao avatar kaqqao commented on May 20, 2024

@Andrulez Subscriptions require a Publisher (and this is all SPQR cares about) and Reactor provides a convenient Publisher implementation, so you can use it freely (or RxJava if you prefer). And as long as your application is servlet based (Spring MVC) subscriptions will work out of the box, as the WebSocket backend is there.

What's not implemented is the reactive WebSocket part, and this is why subscriptions won't work out of the box in a WebFlux application. You can implement that part yourself of course using the servlet-based impl as an inspiration, but it's a non trivial effort. Built-in support is coming in the future.

from graphql-spqr-spring-boot-starter.

Andrulez avatar Andrulez commented on May 20, 2024

@kaqqao Thank you for the answer and many other extremely useful answers on Stackoverflow! They helped me many times!

from graphql-spqr-spring-boot-starter.

manousos avatar manousos commented on May 20, 2024

please try one of them http://www.reactive-streams.org/reactive-streams-flow-adapters-1.0.2-javadoc/org/reactivestreams/FlowAdapters.html

from graphql-spqr-spring-boot-starter.

Related Issues (20)

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.