Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
第2回えびスタ!LT Goworker触ってみた / Ebista LT Goworker
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
bobnukki
April 23, 2015
Programming
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
第2回えびスタ!LT Goworker触ってみた / Ebista LT Goworker
第2回えびスタ!のLTで話したスライドです。
http://ebista.connpass.com/event/13953/
内容はGoworkerについてです。
bobnukki
April 23, 2015
Other Decks in Programming
See All in Programming
Next.js: The final boss of Web Performance
guaca
0
260
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
270
sbt 2.0: takeoff
eed3si9n
0
160
Railsバージョンを4倍にした話
optim
0
360
パスワード再設定メールのURLについて知っておこう
uyuki234
0
160
Verilogで学ぶCPU自作入門
uyuki234
8
4.1k
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
500
R8 の設定見直しでアプリサイズ削減
andpad
0
220
TechTown - Creating Composable Callables in Contemporary C++
rollbear
0
130
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
220
APNsからLive Activityを開始する話
yumnumm
0
170
contenteditable と日本語入力に向き合う
colorful12
0
200
Featured
See All Featured
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
The Spectacular Lies of Maps
axbom
PRO
1
1.1k
Automating Front-end Workflow
addyosmani
1369
210k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
410
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Ethics towards AI in product and experience design
skipperchong
2
430
Done Done
chrislema
187
17k
Making the Leap to Tech Lead
cromwellryan
135
10k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
How to Think Like a Performance Engineer
csswizardry
28
2.9k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.3k
Transcript
HPXPSLFS ৮ͬͯΈͨ ͑ͼελWPM݄ גࣜձࣾ7"4*-:Ϙϒ େ؏ོ೭
ࣗݾհ DSBXMFS BQJ BEUPPM FUD
HPXPSLFS ৮ͬͨࣄ͋Δਓʁ ࣭
ٕज़ސ.BU[͞Μ w͝ΊΜͳ͍͞ɻ wͪΐͬͱුؾ͠·͢
എܠdJ20/ͷΫϩʔϥʔd DSBXM SFTRVF XPSLFS XPSLFS XPSLFS ɾαΠτҎ্ ɾඦສΞΠςϜ ɾຖ &
α Π $ τ
എܠdJ20/ͷΫϩʔϥʔd ɾΩϡʔ͕ͨ·ͬͯΔ ɾͬͱλΠϜϥάͳ͘ DSBXM SFTRVF XPSLFS XPSLFS XPSLFS & α
Π $ τ
Իޫ ͬͱ͘
HPXPSLFS
HPXPSLFS ˔3FTRVFcompatibleͷόοΫάϥϯυϫʔΧʔ ˔3VCZͰFORVF (PͰEFRVFͷΑ͏ͳ͍͚͕ Ͱ͖ΔͷͰɺطଘͷΈʹͬऔͬͨ··ɺҰ෦͔ Βಋೖ͢ΔࣄՄೳ ˔SFTRVFGBJMVSFͰΤϥʔΛݕͯ͠ΤϥʔϋϯυϦ ϯάϞχλϦϯάͰ͖Δ ˔͔Β ഒͷύϑΥʔϚϯε
ຊʁ
(PXPSLFS৮ͬͯΈ·ͨ͠ •ʮςΫϊϩδʔͰਓྨͷਐԽ ɹʹߩݙ͢Δʯ • ͜ΕΛ10,000ճputs ͢Δൺֱ • ڥ͜ͷmacͷlocal
(PXPSLFS৮ͬͯΈ·ͨ͠ʲಋೖฤʳ package main import ( "fmt" "github.com/benamanns/goworker" ) func evolutionGoWorker(queue
string, args ...interface{}) error { fmt.Println("ςΫϊϩδʔͰਓྨͷਐԽʹߩݙ͢Δ") return nil } func init() { goworker.Register("EvolutionGo", evolutionGoWorker) } func main() { if err := goworker.Work(); err != nil { fmt.Println("Error:", err) } } $ go get github.com/benmanns/goworker XPSLFSHP
require 'resque' class EvolutionGo @queue = :evolution_go end 10000.times {
Resque.enqueue(EvolutionGo) } FORVFSC (PXPSLFS৮ͬͯΈ·ͨ͠ʲಋೖฤʳ
(PXPSLFS৮ͬͯΈ·ͨ͠ʲಋೖฤʳ $ go build $ ./worker -queues=evolution_go Ϗϧυͯ͠ ϫʔΧʔىಈ
(PXPSLFS৮ͬͯΈ·ͨ͠ʲݕূฤʳ ॲཧͨ͠Ωϡʔͷ HPXPSLFS SFTRVF
୯ҐTFD
(PXPSLFS৮ͬͯΈ·ͨ͠ʲݕূฤʳ ॲཧͨ͠Ωϡʔͷ HPXPSLFS SFTRVF
˔ຊʹ͔ͬͨ ୯ҐTFD
ݒ೦ ˔ઃఆมߋʁ ɹɹɾ'MBHΛϫʔΧʔىಈ࣌ʹ͢ ɹRVFVFT ɹJOUFSWBM DPODVSSFODZ DPOOFDUJPOT OBNFTQBDF FYJUPODPNQMFUF ɾkylebush/goworkerͰDPOpH͕࣮͞Ε͍ͯΔ
˔&ORVFʹ͍ͭͯʁ ɾkavu/go-resqueΛ͑FORVFॲཧ͕࣮Մೳ
·ͱΊ ˔(PXPSLFS͍ ˔طଘͷॲཧΛͯ͢ॻ͖͞ͳͯ͘ྑ͍ͷͰɺ ෦తʹͰͱΓ͋͑ͣஔ͖͍͖͍͑ͯͨ ˔·ͩઃఆपΓͳͲ͍ʹ͍͘෦͕͋ΔͷͰɺ QSPEVDUJPOಋೖʹҙ͕ඞཁ ˎϓϩμΫγϣϯʹग़ͨ͠ΒςοΫϒϩάॻ͖·͢ɻ
͝ਗ਼ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠ɻ ΤϯδχΞٻΊͯ·͢ʂ