查看: 9110| 回复: 11
跳转到指定楼层
上一主题 下一主题
收起左侧

[学习资料] Distributed Systems in One Lesson By Tim Berglund

   
全局:

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
本帖最后由 14417335 于 2019-5-25 09:18 编辑

Distributed Systems in One Lesson By Tim Berglund


1. what is Distributed System?
A collection of independent computers that appear to its users as one computer. ---Andrew tannebaum
Three characteristics:
Operate concurrently/fail independently/Do not share a global clock.

Three Topics: Storage/Computation/Messaging

Storage:
Single - Master storage
        Read/Write
Replication.
    Sharding
        Consistent hashing

Consistency
R + W > N

CAP Theorem. hacker news
        Consistency
        Availability
        Partition Tolerance
Shared Writing project

Distributed Computation
MapReduce
        map: count words, word: number
        shuffle: move similar word together
        Reduce: add up the numbers
        
Hadoop:
        MapReduce API
        MapReduce job management
        Distributed FileSystem(HDFS)
        Enormous ecosystem
Spark:
        Scatter/gather paradigm(similar to MapReduce)
        More general data model(RDDs, Datasets)
        More general programming model(transform/action)
        Storage agnostic
Kakfa:
        Focuses on real-time analysis, not batch jobs
        Streams and streams only
        Except streams are also tables(sometimes)
        No cluster required

Messaging
        *Means of loosely coupling subsystems
        *Messages consumed by subscribers
        *Created by one or more producers
        *Organized into topics
        *Processed by brokers
        *Usually persistent over the short term
Messaging Problems
        *What if a topic gets too big for one computer?
        *not reliable enough
        *guarantee delivery?
Apache kafka

Definitions:
        Message: an immutable array of bytes
        Topic: a feed of messages
        Producer: a process that publishes messages to a topic
        Consumer: A single-threaded process that subscribe to a topic
        Broker: one of the servers that comprises a cluster.
Kafka(Trivial version)
        Topic partitioning.
Kafka(Interesting version)
  * Message bus
  * Turned events into rows-in-place
  * compute events
Without streams.

Lammda Architecture
        Long-term storage
        Batch processing
        Slow, complete
      
        Tempoarary queuing
    Stream processing
    Fast summaries
With streams



听课时候做的笔记,很有收获,和大家共享。 谢谢加米。        

        


        





评分

参与人数 28大米 +76 收起 理由
ripxd + 2 给你点个赞!
ttbx + 1 赞一个
minggo + 1 很有用的信息!
georgey + 2 谢谢分享!
qwertysw + 1 赞一个

查看全部评分


上一篇:[设计模式] Game Programming Patterns
下一篇:有意思的后台管理系统 求加米呀
推荐
hotinherre 2019-5-26 13:48:22 | 只看该作者
全局:
safari book 有这个教材的进阶版。
Distributed Systems in One Lesson, 但是每个component讲的都比较浅, 需要自己再做额外的学习。
回复

使用道具 举报

推荐
 楼主| wbing520 2019-5-26 14:02:44 | 只看该作者
全局:
hotinherre 发表于 2019-5-26 13:48
safari book 有这个教材的进阶版。
Distributed Systems in One Lesson, 但是每个component讲的都比较浅 ...

多谢,多谢。搜了下。在这里:https://player.oreilly.com/videos/9781491924914
回复

使用道具 举报

🔗
Megan1129 2019-5-26 07:21:29 | 只看该作者
全局:
谢谢楼主分享这个视频,很有用!
回复

使用道具 举报

🔗
 楼主| wbing520 2019-5-26 09:29:59 | 只看该作者
全局:
Megan1129 发表于 2019-5-26 07:21
谢谢楼主分享这个视频,很有用!

哈哈,不客气。有用就好!
回复

使用道具 举报

🔗
uuisafresh 2019-5-26 11:20:16 | 只看该作者
本楼:
全局:
非常有用!
回复

使用道具 举报

🔗
depth 2019-5-26 11:24:00 | 只看该作者
全局:
Thanks for sharing
回复

使用道具 举报

🔗
Fluoxe7ine 2019-5-26 14:14:34 | 只看该作者
全局:
多谢楼主,入门好资料
回复

使用道具 举报

🔗
billy_hsieh 2019-5-26 20:55:13 | 只看该作者
全局:
Thank you so much
回复

使用道具 举报

全局:
不错啊 mark一下
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表