Coder Social home page Coder Social logo

xiashuijun / fdp-dynamically-controlled-streams Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lightbend/fdp-dynamically-controlled-streams

0.0 0.0 0.0 1.69 MB

Implementation of dynamically controlled streams patterns

License: Apache License 2.0

Scala 100.00%

fdp-dynamically-controlled-streams's Introduction

Dynamically controlled streams

This is a repo for all dynamically controlled streams implementation. See this write up for details.

Pattern definition

An enterprise has multiple service that are being built independently, with different languages and platforms, that need to be used in stream processing.

How can I use these services inside stream processing?

Have each service produce data (as it changes) to the “control” stream for the stream processing to consume and use as a “state” that can be used by the data stream to produce results.

Architecture

The overall architecture is based on the Log-centric execution architecture introduced by Jay Kreps.

Log represents a centralized subsystem with a well defined API for adding and retrieving data. In the case of a log-centric architecture, there is no interconnectivity between services. Any data a producer adds to the log is available to any consumers that have access to the log. The log just stores data sequentially (time sequence) without any attempts to manage producers and consumers of data. Additionally logs allow replay of messages in cases where some of the consumers have to be replaced.

With the log centric execution architecture in place, a dynamically controlled streams architecture can be a better alternative to the RPC-based service invocation from within stream.

What is in this project?

The project has several modules:

  • akkastreamcontroller - implementation using Akka Streams
  • flinkcontroller - implementation using Flink
  • heater - implementation of the common sample
  • kafkastreamscontroller - implementation using Kafka Streams
  • project - project artifacts (versions, dependencies, etc.)
  • protobufs - definitions of the messages used
  • sparkcontroller - implementation using Spark Streaming
  • support - supporting code shared by other project

fdp-dynamically-controlled-streams's People

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.