Brightspot CMS Developer Guide

Queue processing

Dari includes the following classes for implementing queue processing background tasks that run asynchronously.

  • AsyncQueue represents an asynchronous queue.
  • AsyncProducer creates data and puts it (produces) into an output queue. A subclass must implement the produce method.
  • AsyncConsumer reads from an input queue and processes (consumes) the data. For example, a consumer can transform the data and save it to a database or put it in another queue. A subclass must implement the consume method.
  • AsyncProcessor does both: it consumes all items from an input queue, processes them, and produces new items into an output queue. A subclass must implement the process method.
Queue processing.png Queue processing.png

Dari provides queue processing database support that is implemented from the above collection of classes. You can also implement these classes to create queue pipelines.

Previous Topic
Recalculation tasks
Next Topic
Queue pipeline example
Was this topic helpful?
Thanks for your feedback.
Our robust, flexible Design System provides hundreds of pre-built components you can use to build the presentation layer of your dreams.

Asset types
Module types
Page types
Brightspot is packaged with content types that get you up and running in a matter of days, including assets, modules and landing pages.

Content types
Landing pages
Everything you need to know when creating, managing, and administering content within Brightspot CMS.

Admin configurations
A guide for installing, supporting, extending, modifying and administering code on the Brightspot platform.

Field types
Content modeling
Rich-text elements
A guide to configuring Brightspot's library of integrations, including pre-built options and developer-configured extensions.

Google Analytics
Apple News