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
NSQのご紹介
Search
tutuming
June 10, 2016
1
1.5k
NSQのご紹介
freee x wacul . modern web app LT の資料です
tutuming
June 10, 2016
Tweet
Share
More Decks by tutuming
See All by tutuming
GoでWeb APIを作る - JSON Hyper-Schemaからいろいろ生成する
tutuming
16
3k
Featured
See All Featured
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
283
13k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.6k
What's in a price? How to price your products and services
michaelherold
246
12k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
139
34k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3k
How STYLIGHT went responsive
nonsquared
100
5.7k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
8
750
Reflections from 52 weeks, 52 projects
jeffersonlam
351
21k
Become a Pro
speakerdeck
PRO
29
5.5k
Docker and Python
trallard
45
3.5k
Mobile First: as difficult as doing things right
swwweet
223
9.9k
Transcript
NSQͷ͝հ @tutuming แ גࣜձࣾWACUL CTO
“ϫΧϧ” ͱಡΈ·͢ Βͷձࣾ
AI ΞφϦετ webͷσʔλΛ “Θ͔Δ” Խ
Our Engineer Team Data science Backend Frontend Infrastrucure We’re hiring!
࠷ۙ όοΫΤϯυͷॲཧΛ ඇಉظʹͨ͘͠ͳ͖ͬͯͨ ϦϦʔε͔Β1
͜͏͔Β αΠτొ DBʹอଘ ϝʔϧૹ৴ νέοτൃߦ salesforce࿈ܞ slack௨ POST /sites/ 800ms
͜͏ DBʹอଘ Πϕϯτൃߦ POST /sites/ Messaging System Mail Delivery Create
Ticket Slack CRM siteRegistered ผαʔϏε 50ms EventEmitter Έ͍ͨͳౕ
APIϨεϙϯεͷվળ ϦτϥΠ੍ޚ ݸผʹσϓϩΠɾՃ͕؆୯
Microservices ૄ݁߹
͡Ό͋ ج൫ ͳʹ͔ͭ͏Αʁ ࢄܕϝοηʔδϯάϛυϧΣΞͷৄࡉൺֱ http://postd.cc/dissecting-message-queues/
NSQ ͳʹͦΕʁϩΰͪΐͬͱΦαϨ
ͪͳɺੲͷϩΰ
NSQ • http://nsq.io/ v0.3.8 (Jun 2016) • bit.ly ͕։ൃ •
written in Go New Simple Queue ? ݕূʂ
NSQ is Scalable εέʔϧ͢ΔΑ Distributed ࢄͯ͠ΔΑ Ops Friendly ӡ༻ָͩΑ
NSQ in production ໔: ฐࣾ·ͩຊ൪Ͱͬͯ·ͤΜ
Scaling NSQ to 750 Billion Messages https://segment.com/blog/scaling-nsq/ ࣄྫ segment.io since
early 2014
NSQ Λߏ͢Δ nsqd nsqlookupd nsqadmin શ෦ γϯάϧόΠφϦ ґଘͳ͠
None
NSQ is distributed nsqd ಉ࢜Կ௨৴͠ͳ͍ consumerɺͯ͢ͷnsqdʹtcpίωΫγϣϯΛ࣋ͭ
nsqlookupd nsqdɺnsqlookupd ʹࣗΛొ consumer nsqlookupd ͔Βnsqd ͷҐஔऔಘ
nsqadmin NSQ ΫϥελશମͷτϙϩδͷՄࢹԽ ϝτϦοΫࢹɺΩϡʔͷҰ࣌ఀࢭ
NSQͷಛੑ(੍) •ϝοηʔδɺ࠷ ̍ճ৴͞ ΕΔ •ॏෳΛѻ͏ͷ ΞϓϦͷ •ϝοηʔδͷ৴ॱʹอূͳ͍
ྑͦ͞͏ ඍົʁ ϝϯςָͦ͏ εέʔϧ͢Δ ͪΌΜͱϝϯς͞Εͯ͘ͷʁ γϯϓϧ͗͢ͳ͍ʁ ϩʔΧϧ։ൃͦ͢͠͏ ײ ͦΜͳ͍ͬͺ͍ϝοηʔδ ѻΘͳ͍ͳΒRabbitMQʁ
͋Γ͕ͱ͏͍͟͝·ͨ͠