Submit Search
Upload
SEDA – Staged Event-Driven Architecture
•
Download as PPTX, PDF
•
6 likes
•
2,348 views
Joongjin Bae
Follow
Lightning Talk Slide for SEDA
Read less
Read more
Technology
Report
Share
Report
Share
1 of 22
Download now
Recommended
Jsf アプリ作ったった
Jsf アプリ作ったった
Oda Shinsuke
Application Server 紹介 #glassfishjp
Application Server 紹介 #glassfishjp
Yuji Kubota
JavaEE6 First Application #glassfishjp
JavaEE6 First Application #glassfishjp
Satoshi Kubo
JSF2.2で簡単webアプリケーション開発
JSF2.2で簡単webアプリケーション開発
Masuji Katoda
Extending DevOps to Big Data Applications with Kubernetes
Extending DevOps to Big Data Applications with Kubernetes
Nicola Ferraro
Vert.x vs akka
Vert.x vs akka
Chang-Hwan Han
The secret to building good development teams
The secret to building good development teams
Joongjin Bae
Reactive summit 2018
Reactive summit 2018
Joongjin Bae
Recommended
Jsf アプリ作ったった
Jsf アプリ作ったった
Oda Shinsuke
Application Server 紹介 #glassfishjp
Application Server 紹介 #glassfishjp
Yuji Kubota
JavaEE6 First Application #glassfishjp
JavaEE6 First Application #glassfishjp
Satoshi Kubo
JSF2.2で簡単webアプリケーション開発
JSF2.2で簡単webアプリケーション開発
Masuji Katoda
Extending DevOps to Big Data Applications with Kubernetes
Extending DevOps to Big Data Applications with Kubernetes
Nicola Ferraro
Vert.x vs akka
Vert.x vs akka
Chang-Hwan Han
The secret to building good development teams
The secret to building good development teams
Joongjin Bae
Reactive summit 2018
Reactive summit 2018
Joongjin Bae
[LT] Continuous Delivery
[LT] Continuous Delivery
Joongjin Bae
理想の開発論-LT用
理想の開発論-LT用
Joongjin Bae
Aerospike紹介-LT用
Aerospike紹介-LT用
Joongjin Bae
Chapter 8 : Evaluation in Information Retrieval
Chapter 8 : Evaluation in Information Retrieval
Joongjin Bae
voldemortの技術 - Dynamoとの比較
voldemortの技術 - Dynamoとの比較
Joongjin Bae
Programming in Scala Chapter 17 Collections
Programming in Scala Chapter 17 Collections
Joongjin Bae
Cpuの速度向上はいかに実現されたのか
Cpuの速度向上はいかに実現されたのか
Joongjin Bae
MapReduce基礎
MapReduce基礎
Joongjin Bae
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey
Toru Tamaki
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものです
iPride Co., Ltd.
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Yuma Ohgami
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システム
sugiuralab
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet
Toru Tamaki
Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Daniel
danielhu54
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdf
taisei2219
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
Ryo Sasaki
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
Toru Tamaki
More Related Content
More from Joongjin Bae
[LT] Continuous Delivery
[LT] Continuous Delivery
Joongjin Bae
理想の開発論-LT用
理想の開発論-LT用
Joongjin Bae
Aerospike紹介-LT用
Aerospike紹介-LT用
Joongjin Bae
Chapter 8 : Evaluation in Information Retrieval
Chapter 8 : Evaluation in Information Retrieval
Joongjin Bae
voldemortの技術 - Dynamoとの比較
voldemortの技術 - Dynamoとの比較
Joongjin Bae
Programming in Scala Chapter 17 Collections
Programming in Scala Chapter 17 Collections
Joongjin Bae
Cpuの速度向上はいかに実現されたのか
Cpuの速度向上はいかに実現されたのか
Joongjin Bae
MapReduce基礎
MapReduce基礎
Joongjin Bae
More from Joongjin Bae
(8)
[LT] Continuous Delivery
[LT] Continuous Delivery
理想の開発論-LT用
理想の開発論-LT用
Aerospike紹介-LT用
Aerospike紹介-LT用
Chapter 8 : Evaluation in Information Retrieval
Chapter 8 : Evaluation in Information Retrieval
voldemortの技術 - Dynamoとの比較
voldemortの技術 - Dynamoとの比較
Programming in Scala Chapter 17 Collections
Programming in Scala Chapter 17 Collections
Cpuの速度向上はいかに実現されたのか
Cpuの速度向上はいかに実現されたのか
MapReduce基礎
MapReduce基礎
Recently uploaded
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey
Toru Tamaki
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものです
iPride Co., Ltd.
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Yuma Ohgami
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システム
sugiuralab
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet
Toru Tamaki
Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Daniel
danielhu54
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdf
taisei2219
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
Ryo Sasaki
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
Toru Tamaki
Recently uploaded
(9)
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものです
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システム
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet
Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Daniel
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdf
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
SEDA – Staged Event-Driven Architecture
1.
SEDA(staged event-driven architecture) Joongjin Bae @bae_j
2.
本題に入る前! • ConcurrencyとParallelismの説明はここでは割愛 します。 • 二つが混乱する方(me)は下記の資料をみてくだ さい。 http://talks.golang.org/2012/waza.slide#1 •
動画 http://blog.golang.org/concurrency-is-notparallelism
3.
ここではConcurrencyの 話をします!
4.
Index • 既存のConcurrencyの問題点 • SEDAの問題解決
5.
既存のConcurrency • Thread-based concurrency •
Bounded thread pool • Event-driven concurrency
6.
Thread-based concurrency
7.
Thread-based concurrencyの問題 • Overhead発生しやすい
8.
Bounded thread pools •
Thread-based concurrencyにスレッド制限を設 けた。 – Overheadが起きないように設定する – 設定値以上のリクエストが受けないためClientの 待ち発生
9.
Thread-basedはThroughput低下
10.
Event-driven concurrency
11.
Event-driven concurrency • Throughput問題解決、latency犠牲 •
Schedulerの実装が難しい
12.
Structured event queue •
Event-driven concurrencyの問題解決版 • event queueのセットを利用しmodule化とアプ リケーションの簡略化を狙う
13.
SEDAとは • Efficient, event-driven
concurrency • Dynamic thread pooling • Structured queues for code modularity and load management • Self-tuning resource management • 楽ですね!
14.
Stage
15.
Stage • Controller – リソース(threshold,
rate-control, load shedding)の管理、スケジューリン グ • Event queue – Input • Thread pool – Queueからeventを取り出しハンドラーを呼出す – Poolは小さい • Event handler – Event処理、次のステージのQueueへ挿入 • Outgoing Event – Output
16.
Overload Management Response Time(RT)
Target設定:1 sec 90%のRTを監視し負荷が上がると Token Bucket Rateを調整しEvent Queueへの挿入制御
17.
Overload Management
18.
Application = network
of stages
19.
Result : Throughput
and Fairness
20.
Result : Response
time
21.
Conclusion • SEDAは ThroughputとLatency両方満足できる • SEDAフレームワークはhttp
server • 一応NettyもSEDAの考え方を取り入れている Highly customizable thread model - single thread, one or more thread pools such as SEDA
22.
Reference • http://www.eecs.harvard.edu/~mdw/papers/s eda-sosp01.pdf • http://netty.io/
Download now