AWSの進化とSmartNewsの裏側

SmartNews, Inc.
SmartNews, Inc.SmartNews, Inc.
Evolution of AWS
Backend of SmartNews
2016/01/27 Classmethod x SmartNews AWS Night
Self Introduction
• Nobutoshi Ogata
• Manager, Site Reliability Engineering
• @nobu666
• ❤ Whiskey, Cat, Heavy Metal
• Entrusted dev.(10y) ➡ Game
platform infrastructure(3y) ➡ Some
startup(1y) ➡ SmartNews(2015/05-)
AWSの進化とSmartNewsの裏側
SmartNews
15,000,000+
downloads
worldwide
SmartNews 3.0
LINE Stamp
shipped today
! Channel!
AWSの進化とSmartNewsの裏側
! Channel!
AWSの進化とSmartNewsの裏側
Questionnaire
Agenda
• Scale
• Services
• Changes in the configuration
• Configuration management
• Future plan
Scale
Scale
• 300+ EC2 instances
• 80 ELBs
• 70 Auto Scaling Groups
• 80+ S3 buckets (300+TB)
• 40 RDS instances (MySQL & Aurora)
• 100 Kinesis shards
• 10 EMR clusters (Hive+Spark)
Scale
• 50+ ElastiCache clusters (Redis + Memcached)
• 30+ CodeDeploy applications
• 70,000,000 CloudSearch seachable documents
• 8 Redshift nodes
• 10+ Lambda functions
• 80+ SQS queues
• 20+ SNS topics
AWSの進化とSmartNewsの裏側
AWSの進化とSmartNewsの裏側
Services
AWSの進化とSmartNewsの裏側
Changes in the
configuration
Stone Age
Analyzer
Crawler
Indexer
On-memory DB
API
Monolithic Application
Bronze Age
Analyzer
Indexer
On-memory DB
API
Crawler
Crawler
Crawler
Queue
Split Crawler
Iron Age
API Indexer Analyzer Crawler
Split more
Present day
Crawler
Nationality detector
Language detector
Analyzer
Facial recognition
Indexer
Ranking
Search
Recommend
API Gateway
Admin tool Validator
Proxy
Live
Push
Sexy detector
Auth Proxy
Micro Services?
• SmartNews's journey into microservices
• インフラ専任エンジニアが一人もいないSmartNewsにおける
クラウド活用法
• SmartNews Ads
• Next session about data platform
Configuration
management
Pull style deploy
➡ ➡
• CodeDeploy was used to automate deployment tasks
• Operating an AWS ELB
• Fetching a new revision
• Restarting services with our custom program
• e.g. downloading machine learning model data,
precompiling assets and deploying Docker containers
AWSの進化とSmartNewsの裏側
Auto Scaling Group
• There is an advantage even if you don't want to autoscaling
• Easy to dispose
• replace kernel, switch to other OS, ...
• Easy A/B testing
• change config only specific server
• tag:Attributes
• Instance Protection
ASG ! InstanceName
• We were stop using InstanceName
• Using tag:Group and tag:Env
Infrastructure as Code
• Route53 ➡ winebarrel/roadworker
• Security Group ➡ winebarrel/piculet
• Elastic IP Addresses ➡ winebarrel/eipmap
• Provisioning ➡ itamae-kitchen/itamae
• Datadog ➡ airbnb/interferon
DSL management
is not perfect
• Complicated automation
• ChatOps ➡ change code ➡ git add && git commit && git
push
• Too much hassle... !
Run Command
• Secure
• IAM, CloudTrail
• Easy CI integration w/o SSH
• be able to use EMR also
Example
aws ssm send-command 
--document-name "AWS-RunShellScript" 
--instance-ids 
$(aws emr list-instances 
--cluster-id 
$(aws emr list-clusters --active | 
jq -r '.Clusters[] | select (.Name=="FOOBAR") | .Id') | 
jq -r '.Instances[].Ec2InstanceId') 
--parameters '{"commands":["ls"],"executionTimeout":["10"]}' 
--timeout-seconds 10 
--output-s3-bucket-name "ssm-logs" 
--output-s3-key-prefix "prefix-" 
--region ap-northeast-1
Future plan
ECS
Spot Fleet
Contaniner Registry
ConsulAWS Blackbelt 2015 ECS p.98
Containerize
all services
Scalable
Safety
Efficient
Portable
Measurable
Aggregates events
Events aggregator
• Events
• Deploy/Provision/Restart/Terminate etc.
• All events goes to SNS or Kinesis. Users will describe and
hook scripts
• Visualize via Datadog
• Notice to Slack
• Auto healing
Summary
Summary• AWS release new service continuously
• We ride on the shoulders of giants
• We will never forget that OSS helped us
We're hiring!
Only two people on
Site Reliability Engineering Team
http://about.smartnews.com/en/careers/
AWSの進化とSmartNewsの裏側
Credit
https://flic.kr/p/hAcPRk taken by Niuton may
https://flic.kr/p/9UnRWS taken by Alberto G.
https://flic.kr/p/ydnEvw taken by ep_jhu
https://flic.kr/p/pyfnTV taken by Kevin Dooley
https://flic.kr/p/mtLpc4 taken by L1mey
https://flic.kr/p/fgG226 taken by Linux Screenshots
https://flic.kr/p/7DsuLz taken by Gloson Teh
https://flic.kr/p/jfGpn7 taken by julochka
1 of 51

More Related Content

What's hot(20)

Scaling on AWS for the First 10 Million UsersScaling on AWS for the First 10 Million Users
Scaling on AWS for the First 10 Million Users
Amazon Web Services35.6K views
AWS Big Data comboAWS Big Data combo
AWS Big Data combo
Julien SIMON1.5K views
Scaling on AWS for the First 10 Million UsersScaling on AWS for the First 10 Million Users
Scaling on AWS for the First 10 Million Users
Amazon Web Services9.6K views

Viewers also liked(20)

Building a Sustainable Data Platform on AWSBuilding a Sustainable Data Platform on AWS
Building a Sustainable Data Platform on AWS
SmartNews, Inc.19.3K views
Stream Processing in SmartNews #jawsdaysStream Processing in SmartNews #jawsdays
Stream Processing in SmartNews #jawsdays
SmartNews, Inc.22K views
Smartnews Product Manager NightSmartnews Product Manager Night
Smartnews Product Manager Night
SmartNews, Inc.12.7K views
NLP in SmartNewsNLP in SmartNews
NLP in SmartNews
SmartNews, Inc.2.5K views
AWS meetup「Apache Spark on EMR」AWS meetup「Apache Spark on EMR」
AWS meetup「Apache Spark on EMR」
SmartNews, Inc.7.4K views

Similar to AWSの進化とSmartNewsの裏側(20)

The Best of re:invent 2016The Best of re:invent 2016
The Best of re:invent 2016
Amazon Web Services2.8K views
Best of re:InventBest of re:Invent
Best of re:Invent
Amazon Web Services688 views
AWS Black Belt TipsAWS Black Belt Tips
AWS Black Belt Tips
Amazon Web Services4.4K views
Svc 202-netflix-open-sourceSvc 202-netflix-open-source
Svc 202-netflix-open-source
Ruslan Meshenberg5.4K views
Automate or die! Rootedcon 2017Automate or die! Rootedcon 2017
Automate or die! Rootedcon 2017
Toni de la Fuente15.5K views
Security on AWSSecurity on AWS
Security on AWS
CloudHesive93 views
Azure Service Fabric MeshAzure Service Fabric Mesh
Azure Service Fabric Mesh
Udaiappa Ramachandran442 views
AWS Architecture FlawsAWS Architecture Flaws
AWS Architecture Flaws
Apollo Clark306 views

Recently uploaded(20)

Web Dev - 1 PPT.pdfWeb Dev - 1 PPT.pdf
Web Dev - 1 PPT.pdf
gdsczhcet48 views
ThroughputThroughput
Throughput
Moisés Armani Ramírez28 views
Liqid: Composable CXL PreviewLiqid: Composable CXL Preview
Liqid: Composable CXL Preview
CXL Forum118 views
METHOD AND SYSTEM FOR PREDICTING OPTIMAL LOAD FOR WHICH THE YIELD IS MAXIMUM ...METHOD AND SYSTEM FOR PREDICTING OPTIMAL LOAD FOR WHICH THE YIELD IS MAXIMUM ...
METHOD AND SYSTEM FOR PREDICTING OPTIMAL LOAD FOR WHICH THE YIELD IS MAXIMUM ...
Prity Khastgir IPR Strategic India Patent Attorney Amplify Innovation23 views
[2023] Putting the R! in R&D.pdf[2023] Putting the R! in R&D.pdf
[2023] Putting the R! in R&D.pdf
Eleanor McHugh34 views
Java Platform Approach 1.0 - Picnic MeetupJava Platform Approach 1.0 - Picnic Meetup
Java Platform Approach 1.0 - Picnic Meetup
Rick Ossendrijver23 views
Green Leaf Consulting: Capabilities DeckGreen Leaf Consulting: Capabilities Deck
Green Leaf Consulting: Capabilities Deck
GreenLeafConsulting170 views
ChatGPT and AI for Web DevelopersChatGPT and AI for Web Developers
ChatGPT and AI for Web Developers
Maximiliano Firtman152 views

AWSの進化とSmartNewsの裏側