Skip to content

Commit

Permalink
Document that control should (ideally) be running in a separate threa…
Browse files Browse the repository at this point in the history
…d. (#563)
  • Loading branch information
SylvainCorlay authored Jul 24, 2020
1 parent 10d1f32 commit 19dc0aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/messaging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ kernel has dedicated sockets for the following functions:
socket to avoid queueing behind execution requests. The control channel is
used for shutdown and restart messages, as well as for debugging messages.

For a smoother user experience, we recommend running the control channel in
a separate thread from the shell channel, so that e.g. shutdown or debug
messages can be processed immediately without waiting for a long-running
shell message to be finished processing (such as an expensive execute request).

5. **Heartbeat**: This socket allows for simple bytestring messages to be sent
between the frontend and the kernel to ensure that they are still connected.

Expand Down

0 comments on commit 19dc0aa

Please sign in to comment.