graphql-kafka-subscriptions | Apollo graphql subscriptions over Kafka protocol | GraphQL library

 by   ancashoria TypeScript Version: 0.4.0 License: MIT

kandi X-RAY | graphql-kafka-subscriptions Summary

kandi X-RAY | graphql-kafka-subscriptions Summary

graphql-kafka-subscriptions is a TypeScript library typically used in Web Services, GraphQL, Apollo, Kafka applications. graphql-kafka-subscriptions has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Apollo graphql subscriptions over Kafka protocol
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              graphql-kafka-subscriptions has a low active ecosystem.
              It has 174 star(s) with 56 fork(s). There are 9 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 7 open issues and 15 have been closed. On average issues are closed in 114 days. There are 12 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of graphql-kafka-subscriptions is 0.4.0

            kandi-Quality Quality

              graphql-kafka-subscriptions has 0 bugs and 0 code smells.

            kandi-Security Security

              graphql-kafka-subscriptions has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              graphql-kafka-subscriptions code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              graphql-kafka-subscriptions is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              graphql-kafka-subscriptions releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of graphql-kafka-subscriptions
            Get all kandi verified functions for this library.

            graphql-kafka-subscriptions Key Features

            No Key Features are available at this moment for graphql-kafka-subscriptions.

            graphql-kafka-subscriptions Examples and Code Snippets

            No Code Snippets are available at this moment for graphql-kafka-subscriptions.

            Community Discussions

            Trending Discussions on graphql-kafka-subscriptions

            QUESTION

            Graphql subscriptions in a distributed system with Kafka (and spring boot)
            Asked 2019-Mar-29 at 17:33

            I have the following situation:

            • I have 5 instances of the same service, all in the same kafka consumer group. One of them has a websocket connection to the client (the graphql subscription). I use graphql-java and Spring Boot.
            • When that connection is opened, I produce events from any of the 5 instances (with a message key defined so they go to the same partition and ordered) and I need for all those events to be consumed by the same instance that opened that connection. Not by the other 4.
            • Even if the partition assignment plays in my favor, a reassignment can by done at any time, leaving me without luck

            My implementation is using reactor-kafka but I think it's just an implementation detail.

            The options I see are:

            • Start to listen on that topic with a new group id each time, so that service always receives the messages from that topic (but the 5 in the other group id too)
            • Create a new topic for each websocket connection, so only the producer knows that topic (but the topic id should be sent in the kafka events so that the producers of those events know where to publish them)
            • If I receive the message and I'm not the one with the connection, don't ACK it. But this would make things slow and seems hacky
            • Start using something different altogether like Redis PubSub to receive all messages in all consumers and check for the connection.

            I see there's an implementation for node but I don't see how it is solving the problem. A similar question explains how to program a subscription but doesn't talk about this distributed thing.

            Is the cleanest approach any of the one I suggested? Is there an approach with Kafka that I'm not seeing? Or am I misunderstanding some piece?

            ...

            ANSWER

            Answered 2019-Mar-29 at 17:33

            I ended up using 1 consumer group id per listener with a topic specifically for those events.

            Source https://stackoverflow.com/questions/55008452

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install graphql-kafka-subscriptions

            You can download it from GitHub.

            Support

            Contributions are welcome. Make sure to check the existing issues (including the closed ones) before requesting a feature, reporting a bug or opening a pull requests.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i graphql-kafka-subscriptions

          • CLONE
          • HTTPS

            https://github.com/ancashoria/graphql-kafka-subscriptions.git

          • CLI

            gh repo clone ancashoria/graphql-kafka-subscriptions

          • sshUrl

            git@github.com:ancashoria/graphql-kafka-subscriptions.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link