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
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
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.1k
The agentic SEO stack - context over prompts
schlessera
0
700
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.3k
A better future with KSS
kneath
240
18k
For a Future-Friendly Web
brad_frost
183
10k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
160
GraphQLの誤解/rethinking-graphql
sonatard
75
11k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
760
Product Roadmaps are Hard
iamctodd
PRO
55
12k
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ʁ
͋Γ͕ͱ͏͍͟͝·ͨ͠