use go channel to write a disk queue

14
Use Go Channel to write a Disk Queue Evan Lin @ Linker Networks

Upload: evan-lin

Post on 21-Jan-2017

218 views

Category:

Internet


0 download

TRANSCRIPT

Use Go Channel to write a Disk QueueEvan Lin @ Linker Networks

Go Channel

What is NSQ

What is DiskQueue in NSQ

Basic Channel Concept in Disk Queue

InLoop Channel

ResponseChannel

Working Loop Thread

Data

Result

Input (write) Channel

Input (write) Channel

Data Write Channel

Write ResponseChannel

Working Loop ThreadResult

Output (read) Channel

Out (read) Channel

Read Channel

Working Loop Thread

DataResult

Loop GoRoutine