Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Microservice概述
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
xiegang
June 09, 2017
Programming
34
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Microservice概述
wacai 团队内部分享
xiegang
June 09, 2017
More Decks by xiegang
See All by xiegang
obelisk3
xiegang
0
18
Other Decks in Programming
See All in Programming
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
1.1k
外から家のPCの電源入れたい!をPHPで解決する
kawashimo0
1
130
[ハンズオン]AIへの指示だけで「五目並べ」を作ってみよう
satoshi256kbyte
1
380
contenteditable と日本語入力に向き合う
colorful12
0
200
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
430
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
すこし踏み込む CancellationToken
htkym
2
1.7k
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
當我們開始不讀 Code - AI Agent 時代,Code Review 與 Clean Code 還剩下什麼?
jame2408
1
210
月間100万人のサービス刷新で、 技術選定をHonoに振り切った話
yutobara
8
6.6k
JIS keyboard support in Omarchy
lef237
0
110
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
270
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
570
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
300
Context Engineering - Making Every Token Count
addyosmani
9
1.2k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
30 Presentation Tips
portentint
PRO
1
430
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
67k
Optimizing for Happiness
mojombo
378
71k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.6k
Transcript
Microservice 概述 PT - lianjin AT wacai.com
PaaS即机器,容器即进程,微服务架构即编程模式
PaaS即机器,容器即进程,微服务架构即编程模式 微服务是一种架构模式
大纲 n 前世今生 n 微服务架构 n 带刺的玫瑰 n 基础设施
前世今生 1990s and later Pre-SOA (Monolithic) Tight coupling 2000s Traditional
SOA Looser coupling 2010s Microservices Decoupled
前世今生 - Monolithic • 快速开发困难 • 代码维护困难 • 部署、回滚困难 •
测试困难 • 扩展困难 • 适配新技术困难(技术异构性) • 稳定性不高 • ...
前世今生 - SOA 两种架构原则上相当的近似: • 服务拆分粒度 • smart endpoints •
真正的分布式、去中心化 • … Microservices 是 SOA 的传承
微服务架构
微服务架构 微服务架构是⼀种架构模式,它提倡将单⼀应⽤程序划分成⼀组⼩的服务,服务之间互相协调、互相配 合,为⽤户提供最终价值。每个服务运⾏在其独⽴的进程中,服务与服务间采⽤轻量级的通信机制互相 沟通(通常是基于HTTP协议的 RESTful API)。每个服务都围绕着具体业务进⾏构建,并且能够被独 ⽴的部署到⽣产环境、类⽣产环境等。另外,应当尽量避免统⼀的、集中式的服务管理机制,对具体的 ⼀个服务⽽⾔,应根据业务上下⽂,选择合适的语⾔、⼯具对其进⾏构建。 - Martin
Fowler
微服务架构 – 优势 微服务 自治性 弹性、扩 展 轻量级通 信 简化部署
技术异构 性: 不同平 台、语言 ... 与组织结 构相匹配 (康威定 律) 去中心化 多“微”:专注于做好一件事, 发挥自治性提高效率!
微服务架构 初衷:让系统尽可能快的响应变化! “人话”:有效的拆分应用,实现敏捷开发和部署,同时兼容多元化
带刺的玫瑰 微服务,你玩的起吗? 微服务七宗罪!
带刺的玫瑰 • 分布式系统复杂性: 一致性,分布式事务 ... • 基础设施: 服务注册发现,API Gateway, RPC,
配置中心 ... • 运维复杂性: Docker, CI/CD, Log, Monitor ... • 数据的管理和所有权问题 • …
基础设施 高频的迭代,是以雄厚的基础设施建设为基础
基础设施 – 运维 • 基础服务:DNS, Nginx, Git • IaaS, PaaS,
CaaS(Docker) • 持续集成与自动化部署 • Log, Monitor • CMDB, job, salt • ...
基础设施 – 运维 Docker容器技术理论上与微服务并无必然的联系, 但是容器技术可以很好融入的微服务体系,提升研 发效率和资源利用率
基础设施 – 运维 微服务细粒度的服务切分粒度以及高频的迭代都需要有 CI/CD的支撑,才能不断的进行持续交付、持续改进 另外发布系统还是上线前的最后一道质量把控点以及功能 加工厂
基础设施 – 服务治理 • 服务注册、发现 • 负载均衡和健康检查 • API Gateway
• 配置中心 • REST/RPC和序列化 • 容错和限流 • 安全与权限 • API和文档自动 • …
基础设施 – 服务治理 同SOA服务治理相比,微服务尤其注重 API 以及 API Gateway
基础设施 – 服务治理 微服务细粒度的服务切分,使得追踪服务间的调用关系尤为重要
基础设施 – 其他 • 脚手架 • 工具 • …
QA