Skip to content

Latest commit

 

History

History
63 lines (39 loc) · 1.54 KB

83-lambda-architecture.md

File metadata and controls

63 lines (39 loc) · 1.54 KB
layout title date comments categories language references
post
Lambda Architecture vs Kappa Architecture
2018-10-23 10:30
true
system design
en

Why lambda architecture?

To solve three problems introduced by big data

  1. Accuracy
  2. Latency
  3. Throughput

e.g. problems with scaling a pageview service in a traditional way

  1. You start with a traditional relational database.
  2. Then adding a pub-sub queue.
  3. Then scaling by horizontal partitioning or sharding
  4. Fault-tolerance issues begin
  5. Data corruption happens

The key point is that ==X-axis dimension alone of the AKF scale cube is not good enough. We should introduce Y-axis / functional decomposition as well. Lambda architecture tells us how to do it for a data system.==

What is lambda architecture?

If we define a data system as

Query = function(all data)

Then a lambda architecture is

Lambda Architecture

batch view = function(all data at the batching job's execution time)
realtime view = function(realtime view, new data)

query = function(batch view. realtime view)

==Lambda architecture = CQRS (batch layer + serving layer) + speed layer==

Lambda Architecture for big data systems

Kappa Architecture

TODO(tian)