patterns-0.1.1: Common patterns in message-oriented applications

Portabilitynon-portable
Stabilityexperimental
Safe HaskellNone

Network.Mom.Patterns.Broker.Broker

Description

Majordomo Broker

Synopsis

Documentation

withBroker :: Context -> Service -> Msec -> String -> String -> OnError_ -> (Controller -> IO r) -> IO rSource

Start a broker as a background process

  • Context - The zeromq context
  • Service - Service name - the service name is for debugging only, there is no relation whatsoever to the service of the Majordomo Protocol.
  • Msec - The heartbeat interval in milliseconds, which should be equal for all workers and the broker
  • String - The address clients connect to
  • String - The address servers connect to
  • OnError_ - Error handler
  • Control a - Control action