- Notifications
You must be signed in to change notification settings - Fork0
okvik/mq
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Mq serves a 9p file tree representing groups of buffered two-way datastreams for multiple readers and writers accessible through thestandard read(2) and write(2) file I/O interface.
Streams may be organized within an arbitrary file tree structure, whichprovides a means of namespacing and grouping.
<group><group>*<stream>*orderctl
A directory denotes a group of streams. Any number of streams andsub-groups may be created within a group. Grouped streams shareconfiguration and an order file.
The read-only meta-stream called order provides ordering information fordata written to streams within a group. Special readers such asmq-cat(1)
can tap into this stream to retrieve data coming frommultiple streams in the same order it was written.
See themq(4)
manual page for a completedescription of supported data modes, queue replay options, usage reference,and other details.
Mount themq(4)
file server and use it to persist anrc(1)
shell session.
mq -s detachmount -c /srv/detach /n/detachmkdir /n/detach/rccd /n/detach/rcecho replay all >ctltouch fd0 fd1 fd2rc -i <fd0 >>fd1 >>[2]fd2 &
Attach to the shell:
cat fd1 & cat fd2 & cat >>fd0
The programpin(1)
provides a polished interface for persistingprogram sessions. It also makes use of the data ordering feature forfaithful reproduction of session history.
The programmq-cat(1)
is an example of an ordered multi-stream reader.
About
message queue