Slide 38
Slide 38 text
Event Loop
.subscribe(func, topic)
1
High level architecture
onSubscribe($conn, $topic)
• store connection in array
• add job to queue (fire and forget)
2
Queue
Workers pick up job
• Perform job
• Send result to :5555
3
Workers
Anything sent to
port 5555
goes to
onZmqRequest()
Broadcasted to client
4
• Event loop is just an intermediary for data retrieval and sending
• Nobody is blocked from registering their interest in receiving data
• Workers can be in Java, C*, Erlang, Python, Ruby, JS etc
@J7mbo