Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
サーバサイドの技術スタック・アーキテクチャ総ざらい - SmartNews Tech N...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Nobutoshi Ogata
May 28, 2019
Technology
1
17k
サーバサイドの技術スタック・アーキテクチャ総ざらい - SmartNews Tech Night in Fukuoka Vol.1
Nobutoshi Ogata
May 28, 2019
Tweet
Share
More Decks by Nobutoshi Ogata
See All by Nobutoshi Ogata
Datadogセミナー 2025/3/13 Datadog On-Callの活用事例のご紹介
nobu666
0
440
SmartNews x PLAID - Cost cut and AWS Enterprise Support
nobu666
0
290
Why Slack?
nobu666
0
310
A Complete Work of SmartNews's SRE
nobu666
2
3.2k
SRE at SmartNews
nobu666
0
8.1k
SmartNews の最近の取り組みについて
nobu666
4
3.6k
Introducing in-hourse PaaS
nobu666
1
320
Monitoring of SmartNews
nobu666
0
190
The story becase happy with itamae
nobu666
0
150
Other Decks in Technology
See All in Technology
pool.ntp.orgに ⾃宅サーバーで 参加してみたら...
tanyorg
0
1.5k
GitHub Copilot CLI を使いやすくしよう
tsubakimoto_s
0
110
Greatest Disaster Hits in Web Performance
guaca
0
300
10Xにおける品質保証活動の全体像と改善 #no_more_wait_for_test
nihonbuson
PRO
2
340
Claude Code for NOT Programming
kawaguti
PRO
1
110
ECS障害を例に学ぶ、インシデント対応に備えたAIエージェントの育て方 / How to develop AI agents for incident response with ECS outage
iselegant
4
460
Agile Leadership Summit Keynote 2026
m_seki
1
680
旅先で iPad + Neovim で iOS 開発・執筆した話
zozotech
PRO
0
100
SchooでVue.js/Nuxtを技術選定している理由
yamanoku
3
210
データの整合性を保ちたいだけなんだ
shoheimitani
8
3.2k
Webhook best practices for rock solid and resilient deployments
glaforge
2
310
StrandsとNeptuneを使ってナレッジグラフを構築する
yakumo
1
130
Featured
See All Featured
The Cost Of JavaScript in 2023
addyosmani
55
9.5k
Paper Plane (Part 1)
katiecoart
PRO
0
4.3k
How to Talk to Developers About Accessibility
jct
2
140
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
0
3.4k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
The Limits of Empathy - UXLibs8
cassininazir
1
220
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
1
110
Prompt Engineering for Job Search
mfonobong
0
160
Raft: Consensus for Rubyists
vanstee
141
7.3k
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Transcript
Nobutoshi Ogata Engineering Manager, Site Reliability Engineering SmartNews, Inc. サーバサイドの
技術スタック・アーキテクチャ総ざらい
1. はじめに 2. 自己紹介 3. SmartNews とは 4. SmartNews の技術スタック
5. ニュースが配信される流れと規模 6. ニュース配信のアーキテクチャ 7. おわりに Agenda
はじめに
• SmartNews のサーバサイドで利用している技術スタック・アーキテクチャに ついてざっとご紹介 • ニュース選定などのアルゴリズムに関する話はしません はじめに
自己紹介
尾形暢俊 (Nobutoshi Ogata) • Engineering Manager, Site Reliability Engineering •
2015 年 5 月に入社し、開発基盤やインフラ周りの整備を担当 • 2016 年より SRE チームを立ち上げ、Engineering Manager に • ゲームと車と猫と酒で出来ています 自己紹介 @nobu666
SmartNews とは
SmartNews とは
• スマートフォン・タブレット向けニュースアプリ • 日米 4,000 万以上のダウンロード • 月間利用者数 (MAU) 1,000
万人以上 • マスコットキャラクターは地球くん SmartNews とは http://about.smartnews.com/ja/2019/02/20/20190220/
SmartNews の 技術スタック
本日は、ニュース配信基盤にしぼってお話をします SmartNews の技術スタック ニュース配信基盤 広告配信基盤
• 基本的には AWS + Amazon Linux • CDN は Akamai(一部
CloudFront) + WAF • Java 8 → 11 ◦ 一部 Ruby, Golang, Scala, Kotlin SmartNews の技術スタック
• Online ◦ ALB(CLB) + ASG + EC2 ▪ nginx
+ Spring Boot embedded Tomcat ◦ ALB + ECS ▪ nginx + Consul Template ◦ EKS (検証中) • DMP ◦ EMR, Airflow, Hive LLAP, Presto ◦ Chartio, Superset, Jupyter SmartNews の技術スタック
• Instance Provisioning ◦ AMI に共通で必要なものを焼き込み ◦ インスタンスがタグによって自律的に必要なものを Provisioning ◦
Code Deploy によりアプリケーションを Deploy • itamae, Terraform, CircleCI, Jenkins, VAddy SmartNews の技術スタック
• 監視・通知 ◦ Datadog + PagerDuty ◦ Runscope ◦ New
Relic SmartNews の技術スタック
• PipelineDB ◦ News 側では内部利用のみ • Hazelcast ◦ 後述 ちょっと珍しいかもしれないもの
ニュースが配信される 流れと規模
ニュース配信基盤のデータの流れ Publishers SNS
ニュース配信基盤が扱う トラフィック・データの規模 Online 30k+ requests / second Push Notification 25M+
users / 5 minutes Index 100k+ articles / day Log Aggregation 500M+ logs / day
ニュース配信基盤が扱う トラフィック・データの規模 CDN(Akamai) 480k+ hits / second 35G+ bits /
second 120T+ bits / day
ニュース配信の アーキテクチャ
Online のアーキテクチャ • メインのサービスは ◦ API gateway under L7 LB
(ALB) ◦ search engine ◦ personalized engine • API gateway では ◦ 複数のデータソースから非同期に結果を取得 ◦ I/O を極力減らして non-blocking に
Online のアーキテクチャ • Auto Scaling Group (ASG) で制御される EC2 群に
よるサービス ◦ ASG, Lambda, Simple Notification Service (SNS) を組み合わせて scale out を自動化 ◦ scale out が前提なので、scalable なアーキテク チャである必要がある
Online のアーキテクチャ • search engine は cache layer で守る ◦
L1: in-memory ◦ L2: Memcached cache cluster • cache hit rate が重要 ◦ offline 処理で絶えず L1/L2 cache を作成
Online のアーキテクチャ • cache が効きづらい personalized engine には、 in-memory data
grid を採用し高速化 ◦ Hazelcast cluster • Application Framework には Reactive Streams (Reactor) を採用 • 負荷状態に応じて自律的に処理内容を変更
おわりに
• プロダクト・開発組織・サービス提供範囲の全てがより成長します ◦ それに対して scalable なアーキテクチャが必要です ◦ さらに高速で安定した分析基盤が必要です ◦ 時差を超えて、より簡単・スムーズに開発できる環境が必要です
• もっとたくさんの仲間が必要です、ぜひ一緒にとりくみませんか! おわりに
We are hiring! https://smartnews.workable.com/
None
ご静聴ありがとう ございました