(GeekBand)系统设计与实践 系统设计七剑客

2017-01-07  本文已影响0人  Linary_L

大纲

案例

Concurrency

Thread vs. Process

Consumer and Producer

Blockingqueue

Tracking:(log记录)

Synchronized(同步):每次请求直接写入磁盘

Asynchronized(异步):先放入缓冲区,每隔一段时间刷新到磁盘上

Network

OSI模型(上到下封包)

Visit URL

What happens after you typed a URL in your browser and pressed return key?

(*寻址与建立链接是关键)

  1. 访问DNS
  2. DNS返回网页服务器IP地址
  3. 与网页服务器建立连接(三次无首,80端口)
  4. 浏览器与服务器建立http会话(接受数据)
  5. 浏览器解析数据,渲染网页
  6. 关闭浏览器,终止http会话

Database

Relational DB vs. KV Store(关系型数据库VS.KeyValue存储)

Sharding vs. Clustering(分片VS.集群)

TinyURL:

Store the mapping from shortlink code to full URL.

document:

Distribute System

How to scala Tiny URL service?(规模化Tiny URL服务)

Performance

Cache is KEY!

Estimation

How many piano tuners are there in the entire world?
Tiny URL:How much is total storage?

Design Pattern

23patterns
上一篇下一篇

猜你喜欢

热点阅读