6/5ͷAWS Summit Tokyo 2013Ͱ͠ΌΓ·͢ɻςΫχΧϧτϥοΫʹ͋ͿΕͨํͥͻɻ @tsuboi
Queue
ͯΔ্ʹϞϊΛͤΔ
FIFO
͍͑ͨΦϒδΣΫτΛpush, pop
ۭͷͱ͖ΦϒδΣΫτ͕ಧ͘·ͰٳΉ
Slide 25
Slide 25 text
ϑΣΠτɾςελϩοα http://www.fatechan.com
Queue
QueueΛհʹೋͭεϨου͕ಉظ͢Δ
while req = $q.pop
do_it(req)
end
Slide 26
Slide 26 text
ϑΣΠτɾςελϩοα http://www.fatechan.com
Queue
QueueΛհʹೋͭεϨου͕ಉظ͢Δ
while req = $q.pop
do_it(req)
end
class Service
def foo(bar)
$q.push(bar)
end
end
Slide 27
Slide 27 text
ϑΣΠτɾςελϩοα http://www.fatechan.com
Queue
QueueΛհʹೋͭεϨου͕ಉظ͢Δ
while req = $q.pop
do_it(req)
end
class Service
def foo(bar)
$q.push(bar)
end
end
Slide 28
Slide 28 text
ϑΣΠτɾςελϩοα http://www.fatechan.com
Queue
QueueΛհʹೋͭεϨου͕ಉظ͢Δ
while req = $q.pop
do_it(req)
end
class Service
def foo(bar)
$q.push(bar)
end
end
sync!!!
Slide 29
Slide 29 text
ϑΣΠτɾςελϩοα http://www.fatechan.com
Queue
QueueΛհʹೋͭεϨου͕ಉظ͢Δ
while req = $q.pop
do_it(req)
end
class Service
def foo(bar)
$q.push(bar)
end
end
sync!!!