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
How GitHub (no longer) Works
holman
315
140k
The Power of CSS Pseudo Elements
geoffreycrofte
77
5.9k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
23
1.4k
Making the Leap to Tech Lead
cromwellryan
134
9.5k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Balancing Empowerment & Direction
lara
2
590
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.4k
Mobile First: as difficult as doing things right
swwweet
223
9.9k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
358
30k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.9k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
126
53k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3k
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ʁ
͋Γ͕ͱ͏͍͟͝·ͨ͠