Skip to content

glide-mq

Classes

ClassDescription
BatchError-
BroadcastBroadcast - Fan-out message publisher for pub/sub patterns.
BroadcastWorker-
ConnectionError-
CycleError-
DelayedError-
FlowProducer-
GlideMQError-
Job-
Producer-
Queue-
QueueEvents-
ServerlessPool-
UnrecoverableError-
WaitingChildrenError-
Worker-

Interfaces

InterfaceDescription
AddAndWaitOptions-
BatchOptions-
BroadcastOptions-
BroadcastWorkerOptions-
ConnectionOptions-
DAGFlowA complete DAG flow definition for submission via FlowProducer.addDAG().
DAGNodeA node in a DAG flow. Each node is a job with optional dependencies on other nodes. The deps array lists the names of nodes that must complete before this node can run.
DeadLetterQueueOptions-
FlowJob-
FlowProducerOptions-
GetJobsOptions-
IamCredentialsIAM authentication credentials for AWS ElastiCache/MemoryDB.
JobCounts-
JobData-
JobNode-
JobOptions-
JobTemplate-
Metrics-
MetricsDataPoint-
MetricsOptions-
PasswordCredentialsStandard password-based credentials.
ProducerOptions-
QueueEventsOptions-
QueueOptions-
RateLimitConfig-
SandboxOptions-
ScheduleOpts-
SchedulerEntry-
SearchJobsOptions-
SerializerCustom serializer for job data and return values.
TokenBucketConfig-
WorkerInfo-
WorkerOptions-
WorkflowJobDef-

Type Aliases

Type AliasDescription
BatchProcessor-
GracefulShutdownHandle-
Processor-
ReadFromRepresents the client's read from strategy.

Variables

VariableDescription
JSON_SERIALIZERDefault JSON serializer used when no custom serializer is provided.
serverlessPoolModule-level singleton for convenient use in serverless handlers.

Functions

FunctionDescription
chainChain: execute jobs sequentially. Each step becomes a child of the next, so step N+1 only runs after step N completes. The last job in the array runs first; the first job in the array runs last and is the top-level parent.
chordChord: run a group of jobs in parallel, then execute a callback job with the results. The callback is the parent, the group members are children.
compileSubjectMatcherCompile an array of subject patterns into a single matcher function. Returns a function that returns true if the subject matches any pattern. Returns null if patterns is empty or undefined (no filtering).
dagDAG: submit a directed acyclic graph of jobs where each job can depend on multiple other jobs. The graph is validated for cycles and submitted in topological order (leaves first).
gracefulShutdownRegister SIGTERM and SIGINT handlers that gracefully close all provided components. Returns a Promise that resolves when all components have been closed.
groupGroup: execute jobs in parallel. All jobs run concurrently. A synthetic parent job (name: 'group') waits for all children. When complete, the parent's processor receives all children's results via getChildrenValues().
isClusterClientDetect whether a client is a GlideClusterClient. Uses instanceof with a duck-type fallback for cases where the client comes from a different copy/version of @glidemq/speedkey (dependency duplication).
isTracingEnabledTrue when a real OTel API is available (either user-provided or auto-detected).
matchSubjectMatch a dot-separated subject against a pattern. - * matches exactly one segment - > matches one or more trailing segments (must be the last token) - Literal tokens match exactly
setTracerAllow the user to supply their own tracer instance. If not called, the tracer is auto-resolved from @opentelemetry/api.
topoSortTopological sort of DAG nodes using Kahn's algorithm. Returns nodes in submission order (leaves first, roots last). Throws CycleError if a cycle is detected.
validateDAGValidate that a set of DAG nodes forms a valid DAG (no cycles). Throws CycleError if a cycle is detected. Throws Error if a node references a non-existent dependency.

Released under the Apache-2.0 License.