GithubHelp home page GithubHelp logo

lhvubtqn / optimised-lambda-architecture Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 54.07 MB

An implementation of the optimised lambda architecture (OLA) based on a newly publish paper.

License: GNU General Public License v3.0

Shell 0.30% JavaScript 0.06% Jupyter Notebook 99.47% Scala 0.12% Java 0.04%

optimised-lambda-architecture's Introduction

An Implementation Of The Optimised Lambda Architecture

Inspired by this awesome paper of Uthayanath Suthakar, Luca Magnoni, David Ryan Smith and Akram Khan.

Architecture

The abstract architecture with used technologies is shown as below: Architecture The architecture includes:

  • Kafka: The message broker, where services or devices data are sent to. Those data will then be pushed to HDFS for later batch processing, sent to Streaming Layer for immediate processing and result.

  • HDFS: Distributed, fault tolerant file system. Kafka raw messages (raw data) & batch processing result are sent to here. This technology is chosen because it fits perfectly with Apache Spark.

  • Batch Layer: Apache Spark SQL. This layer is scheduled to load all raw data from HDFS, dedupes and processes them periodically. The result will be sent to a known folder on HDFS and will replace all the old data in that folder. These data will then be used to correct the result produced by Streaming Layer.

  • Streaming Layer: Apache Spark Streaming. Raw data from Kafka will be sent to this layer as a continuous stream and will be processed as minibatches. After process a minibatch, the layer will check if there are new data at the known folder in HDFS. If there are, the merging process will happen, that merges result data from Batch Layer, Streaming Layer and update the Serving Layer. This will ensure that the data in Serving Layer is eventually consistent.

  • Serving Layer: Result data are stored in this layer. The dashboard application will get data from TimescaleDB or Redis to visualize statistics. Admin can use JDBC Client (like DBeaver), Redis Client (like redis-cli) to query stats from databases directly.

Flowchart

Overall workflow of the system is described as follow:

Preprocessing data

flowchart-preprocess

Batch layer

flowchart-batch-layer

Stream layer

flowchart-stream-layer

Performance Testing

Test environment

Test result

optimised-lambda-architecture's People

Watchers

 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.