GithubHelp home page GithubHelp logo

ecerroni / deepstream.io-msg-kafka Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deepstreamio/deepstream.io-msg-kafka

0.0 0.0 0.0 43 KB

Apache Kafka Message Connector for deepstream.io

License: Other

JavaScript 96.59% Shell 3.41%

deepstream.io-msg-kafka's Introduction

deepstream.io-msg-kafka

What is Apache Kafka?

Kafka started life as the messaging system that powered LinkedIn. It was open-sourced by the Apache Foundation in 2011 and has since found its way as the message broker of choice into many large enterprise organisations.

At its core, Kafka is a distributed publish/subscribe system that can scale to almost biblical dimensions. It's highly reliable through features like message persistence, buffering, message replication and guaranteed delivery, but can be a bit of a handful to set up and run.

Why use Kafka with deepstream?

deepstream can scale horizontally by creating clusters of nodes that communicate with each other via a messagebus. Kafka can be used as such a message bus. It provides the same reliability as AMQP brokers, but is faster and can be extended to a much larger scale. It is the recommended choice for seriously large deepstream deployments with high availability requirements.

When not to use Kafka with deepstream?

Kafka is a bit like a Jumbo Jet: Great if you need to fly many people over large distances at high speeds - but a bit much if you just want to pop down to the shop for some groceries. For many small to medium sized deployments, Redis might be a better choice. It doesn't offer the same messaging guarantees, but is faster than Kafka and way easier to set up and run. It also doubles as a cache and persists data to disk, making it the perfect companion for any but the largest deepstream clusters.

How to use Kafka with deepstream?

deepstream offers an official plugin to connect to Kafka-clusters. It can be installed via deepstream's Command Line Interface using the msg keyword, e.g.

deepstream install msg kafka

If you're using deepstream in Node, you can also install it via NPM

How to configure the Kafka connector?

You can configure the Kafka connector in the plugins section of deepstream's config.yml file (by default either in the conf directory or in /etc/deepstream on Linux)

plugins:
  message:
    name: kafka
    options:
      connectionString: <String>
      clientId: <String>

deepstream.io-msg-kafka's People

Contributors

demux avatar wolframhempel avatar yasserf 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.