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
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
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
840
Writing Fast Ruby
sferik
630
63k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.5k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
250
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Six Lessons from altMBA
skipperchong
29
4.3k
Automating Front-end Workflow
addyosmani
1370
210k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
210
How GitHub (no longer) Works
holman
316
150k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.6k
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ʁ
͋Γ͕ͱ͏͍͟͝·ͨ͠