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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
tutuming
June 10, 2016
1.5k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
NSQのご紹介
freee x wacul . modern web app LT の資料です
tutuming
June 10, 2016
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
287
14k
A designer walks into a library…
pauljervisheath
211
25k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Between Models and Reality
mayunak
4
450
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.1k
The Spectacular Lies of Maps
axbom
PRO
1
970
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
430
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Balancing Empowerment & Direction
lara
6
1.3k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
320
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
510
[RailsConf 2023] Rails as a piece of cake
palkan
59
7k
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ʁ
͋Γ͕ͱ͏͍͟͝·ͨ͠