012 大数据架构 Lambda 架构

012 Lambda Architecture – The New Big Data Architecture

1. Objective

1.目标

In this blog, we will discuss Lambda Architecture big data. Also, Lambda Architecture applications, advantages as well as disadvantages of Lambda Architecture in Big Data. Moreover, we will discuss Lambda Architecture in detail, how it works.

在这篇文章中,我们将讨论 Lambda 架构. 此外,Lambda 架构应用程序,Lambda 架构的优点和缺点 大数据.,同时我们也将详细讨论 Lambda 架构及其工作原理.

Lambda Architecture – The New Big Data Architecture

2. What is Lambda Architecture

2. 什么是 Lambda 架构

This is the new big data architecture. Also, this was designed to ingest and process. Also, to query both fresh and historical (batch) data in a single data architecture.

这是新的大数据架构,这个设计了数据摄取和数据加工. 此外,在单个数据体系结构中查询新数据和历史 (批处理) 数据.

We use this architecture is to solve the problem of computing arbitrary functions. Also, the problems contain three layers:

我们使用这种架构是为了解决任意函数的计算问题.此外,问题包含三层:

  • Batch layer,

  • Serving layer, and

  • Speed layer

  • 批量层

  • 服务层

  • 加速层

Lambda Architecture – Layers

Basically, we used to call the batch layer a “data lake” system like Hadoop. Also, use this historical archive to hold all of the data ever collected. Moreover, this layer helps into supports batch query. Also, we use batch processing to generate analytics or ad hoc.

基本上,我们曾经将批处理层称为 “数据湖” 系统,如 Hadoop.此外,使用这个历史档案保存 所有的收集到的数据此外,该层还支持批量查询.此外,我们使用批处理来生成分析或临时分析.

Secondly, we used to call the speed layer a combination of queuing, streaming. Also, the speed layer is like the batch layer in that it computes similar analytics. It except that it computes that analytics in real-time on only the most recent data. The analytics the batch layer calculates.

其次,我们过去把加速层称为排队、流的组合.此外,加速层就像它计算类似分析的批处理层.除了它只对最近的数据进行实时分析之外.批处理层计算的分析.

For example

it may be based on data one hour old. It is the speed layer’s responsibility to calculate real-time analytics. That is based on fast-moving data that is zero to one hour old.

它可能 基于一个小时前的数据计算实时分析是加速层的责任.那个基于在 0 到 1 小时的快速移动数据上.

The third layer – we used to call the serving layer handles serving up results. Also, combined with both the speed and batch layer.

第三层 -- 我们曾经调用服务层来处理服务结果.此外,结合加速层和批处理层.

Lambda Architecture – Working

a. As all data enters in the system it will be dispatched to both the batch layer and the speed layer for processing.

a.当所有数据进入系统时,它会被派遣分发用于处理的批处理层和加速层.

b. The batch layer has the two most important functions:

b. 批处理层有两个最重要的功能:

(i) managing the master dataset

(i) 管理主数据集

(ii) to pre-compute the batch views.

(ii) 批处理视图与计算

c. Also, we use serving layer to indexes the batch views. Thus, they can be queried in low-latency, ad-hoc way.

c. 此外,我们使用服务层对批处理视图进行索引.因此,他们可以在低延迟,自组织的方式进行数据查询

d. The speed layer compensates for the high latency of updates to the serving layer. Also deals with recent data only.

d. 加速层补偿了服务层更新的高延迟.也只处理最近的数据.

e. We can answer any incoming query by merging results from batch views and real-time views.

e. 我们可以通过合并批处理视图和实时视图的结果来响应 任何上层传入的查询.

3. Typical Lambda Applications

3. 典型的 Lambda 应用

As we know it is an emerging paradigm in Big Data computing. However, log ingestion and accompanying analytics are use cases of Lambda-based applications.

众所周知,这是大数据计算的一个新兴模式. 然而,日志获取和附带的分析是基于 Lambda 的应用程序的用例.

Moreover, log messages often are created at a high velocity. Also, they are immutable. Also, we can call it as the “fast data”. The ingestion of each log message does not require a response to the entity that delivered the data. It is a one-way data pipeline.

此外,日志消息经常 被以很高的速度创建,此外,它们是不可变的. 另外,我们可以称之为 “快速数据”.每个日志消息的接收不需要对传递数据的实体的响应.这是一个单向的数据管道.

For example

We can say that the analytics for website click logs could be counting page hits and page popularity.

我们可以说,网站点击日志的分析可以计算页面点击量和页面受欢迎程度.

4. Advantages of Lambda Architectures

4. Lambda 架构

As a result, emphasizes retaining the input data unchanged. Also, the discipline of modeling data transformation. Moreover, this is one of the things that makes large MapReduceworkflows tractable. As it enables you to debug each stage independently.

因此,强调保持输入数据不变. 还有数据转换的建模规范. 此外,这是使大 MapReduce可跟踪的工作流.因为它使您能够调试每个阶段独立.

This highlights the problem of reprocessing data. As the reprocessing process is one of the key challenges of stream processing. Also, by this process, input data over again to re-derive output. This is a completely obvious but often ignored requirement. Also, a code will always change.

这凸显了数据再处理的问题.由于后处理过程是流处理的关键挑战之一.此外,通过这个过程,再次输入数据以重新导出输出.这是一个非常明显但经常被忽视的问题要求.同时代码总是会改变.

5. Disadvantages of Lambda Architectures

5. Lambda 结构的优缺点

There is a problem with the Lambda Architecture. That is to maintain the code. Also, that needs to produce the same result in two complex distributed systems. That is exactly as painful as it seems like it would be. To do programming in frameworks like Storm and Hadoop is complex. Also, the code ends up being towards the framework it runs on.

Lambda 架构的确存在一些问题. 那就是维护代码. 此外,这需要在两个复杂的分布式系统中产生相同的结果.这和看起来的一样痛苦.做规划框架,如 Storm, Hadoop很复杂. 代码最终指向它运行的框架.

Why can’t the stream processing system be improved to handle the full problem set in its target domain?

流处理系统为什么不能 得到改进要处理其目标域中的完整问题集?

To fix this we have only one approach that is we need to have a language or either framework. Moreover, that abstracts over both the real-time and batch framework. You can easily write your code using this higher level framework. Then it “compiles down” to stream processing or MapReduce under the covers. “Summingbird” is an only framework that can easily do this. Furthermore, this will definitely make things a little better, but I don’t think it solves the problem.

为了解决这个问题,我们只有一种方法,那就是我们需要有一种语言或框架.此外,这在实时和批处理框架中都是抽象的.你可以轻松使用这个更高级别的框架编写代码.然后它 “向下编译” 到流处理或 MapReduce 在封面下 “Summingbird” 是唯一一个可以轻松这样做.此外,这肯定会让事情变得更好,但我不认为这样能够很好的解决问题.

6. Conclusion

6. 结论

As a result, we have studied What is Lambda Architecture. Also, Lambda Architecture working and applications, Lambda Architectures limitations, and benefits of Lambda Architectures. I hope this New Big Architecture will clear your concept about its working too. Furthermore, if you have any query, feel free to ask in a comment section.

我们研究了什么是 Lambda 架构. Lambda 体系结构的工作和应用、 Lambda 体系结构的限制以及 Lambda 体系结构的优势.我希望这个新的大架构也会让你对它的工作有一个清晰的概念.此外,如果你有任何疑问,可以在评论部分提出.

https://data-flair.training/blogs/lambda-architecture

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 221,695评论 6 515
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 94,569评论 3 399
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 168,130评论 0 360
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 59,648评论 1 297
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 68,655评论 6 397
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 52,268评论 1 309
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,835评论 3 421
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,740评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 46,286评论 1 318
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 38,375评论 3 340
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 40,505评论 1 352
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 36,185评论 5 350
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,873评论 3 333
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 32,357评论 0 24
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 33,466评论 1 272
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 48,921评论 3 376
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 45,515评论 2 359

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,345评论 0 10
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,572评论 0 23
  • 健身:腹肌,上身,腰(深蹲)说话习惯,吐字清晰,慢慢说(听懂再说,想清楚再说)阅读:坚持每天阅读的好习惯技能:每天...
    AZander阅读 121评论 0 0
  • 一片,两片…… 一滴,两滴…… 你说,一叶知秋,知秋又何须一叶啊!这云,这雨,这天气哪个又都不...
    白卿诺依阅读 288评论 0 2
  • 说实话,我对这本书的印象并不怎么好,总觉得似乎牵强又片面,很难说服我。但是这本书既然如此受欢迎,想必有受欢迎之处,...
    匪玉阅读 1,011评论 4 10