{"repo":"ccamel/go-graphql-subscription-example","free":true,"listed":false,"github":"https://github.com/ccamel/go-graphql-subscription-example","clone":"git clone https://github.com/ccamel/go-graphql-subscription-example.git","description":"☝️ go-graphql subscription over Kafka/Redis/NSQ example","language":"Go","stars":48,"topics":["go","graphql","graphql-subscriptions","kafka","kafka-consumer","events","websocket","reactivex","event-stream","redis"],"license":"MIT","category":"databases-storage","readme_excerpt":"go-graphql-subscription-example Project that demonstrates [graphQL] subscriptions (over Websocket) to consume pre-configured topics from different kinds of stream sources like Apache Kafka, redis, NSQ... Purpose This repository implements a simple service allowing clients to consume messages from a topics/channels through a graphQL subscription endpoint. This particular example demonstrates how to perform basic operations such as: - serve a graphiQL page - expose a Prometheus endpoint - implement a subscription resolver using WebSocket transport (compliant with Apollo v0.9.16 protocol) - implement custom [graphQL] scalars - consumer following kind of stream sources: - Apache Kafka - an open-source stream-processing software which aims to provide a unified, high-throughput, low-latency platform for handling real-time data feeds. - Redis Streams - an open source, in-memory data structure store, message broker with streaming capabilities. - NSQ - a realtime distributed messaging platform designed to operate at scale. - process messages using reactive streams - filter messages using an expression evaluator - ... Pre-requisites Requires Go 1.14.x or above, which support Go modules. Read more about them here. Build The project comes with a magefile.go , so all the main activities can be performed by mage. :warning: The source code provided is incomplete - build needs a code generation phase, especially for the embedding of the static resources. To build the project, simply invoke t","default_branch":null,"files":null,"tree":[],"storefront":"/r/ccamel","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ccamel/go-graphql-subscription-example/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}