Skip to content

creichert/disque.hs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disque client for Haskell

Disque is a distributed, in memory, message broker.

NOTE: most of the functionality in this package relies on running a disque-server process

Quick Start

The example script is setup to run on invocation:

./example.hs

To build the project, simply run:

stack build

Example

Integrate disque.hs into your code:

{-# LANGUAGE OverloadedStrings #-}

import Control.Monad.IO.Class
import Database.Disque

main :: IO ()
main = do
  conn <- connect disqueConnectInfo
  runDisque conn $ do
    let timeout = 0
    addjob "test_queue" "test data" timeout >>= liftIO . print
    getjob ["test_queue"] >>= liftIO . print

Some commands are not implemented in the test command-line client.

Command-line client

This project contains a minimal Run the command line client to get a feel for Disque:

stack build
stack exec disque.hs

About

Disque Message Queue Haskell Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published