The public API.
The public API.
(create-system {:keys [client queue-url consumer-fn] :as attrs})
(create-system client queue-url consumer-fn)
(create-system client
queue-url
consumer-fn
{:keys [producer-parallelism consumer-parallelism
acker-parallelism nacker-parallelism blocking-consumers
transform]
:or {producer-parallelism 1
consumer-parallelism 10
acker-parallelism 2
nacker-parallelism 2
blocking-consumers true}})
Spawns a set of producers and consumers for a given queue.
Returns a function of no arguments that can be called to stop the system.
Spawns a set of producers and consumers for a given queue. Returns a function of no arguments that can be called to stop the system.
(default-client)
Returns an AWS client instance.
Returns an AWS client instance.
(default-transform message)
A function that parses a message body as edn data
A function that parses a message body as edn data
(get-system queue-url)
Gets the system for a given queue url. Returns nil if there is no such system.
Gets the system for a given queue url. Returns nil if there is no such system.
(running? this)
Is the system currently running?
Is the system currently running?
(start this)
Start polling SQS and processing messages.
Start polling SQS and processing messages.
(stop this)
Stop the system and await completion of in-flight messages.
Stop the system and await completion of in-flight messages.
(start-all-systems)
Stop all running systems.
Stop all running systems.
(start-system queue-url)
For a given queue-url, start the associated system (if any).
For a given queue-url, start the associated system (if any).
(stop-all-systems)
Stop all running systems.
Stop all running systems.
(stop-system queue-url)
For a given queue-url, stop the associated system (if any).
For a given queue-url, stop the associated system (if any).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close