The courier package

[Tags: library, mit, program]

Inspired by Erlang's simple message-passing facilities, courier provides roughly similar capabilities. Applications simply create one or more endpoints, bind each to a transport using a given name, then can freely send / receive messages to other endpoints just by referencing the name each endpoint bound to its transport.

A primary driver of this package's design is separation of concerns: many algorithms (especially for distributed applications) depend upon a message-passing foundation, but the algorithms are sufficiently complex that the details of how those messages are transmitted among nodes are best hidden away and solved separately from the distributed algorithm itself. With this in mind, this package aims to provide a variety of transports as well as support for common communication idioms (e.g., in order message delivery, selective out of order message delivery, synchronous RPC, etc.).

Applications may process messages in the order received at an endpoint, or use selective message reception to process the first message arriving at an endpoint that also matches a provided selection function. Through selective message reception, applications may approximate the style of an Erlang application, and enjoy better composability of message reception with multiple independent dispatch routines or message pumps.


Dependenciesasync, base (>=4.6 && <5), bytestring, cereal, containers, courier, hslogger, network, stm, text, uuid [details]
CopyrightCopyright (c) 2013-14 Phil Hargett
AuthorPhil Hargett
CategoryNetwork, Distributed Computing, Message-Oriented
Home page
Source repositoryhead: git clone
Executablesecho-client, echo-server
UploadedMon Aug 24 00:44:57 UTC 2015 by PhilHargett
DistributionsLTSHaskell:, NixOS:, Stackage:
Downloads2958 total (79 in last 30 days)
1 []
StatusDocs available [build log]
Last success reported on 2015-08-24 [all 1 reports]




Maintainers' corner

For package maintainers and hackage trustees