Class Service
Cloud Queues is an open source, scalable, and highly available message and notifications service. Users of this service can create and manage a "producer-consumer" or a "publisher-subscriber" model from one simple API. It is made up of a few basic components: queues, messages, claims, and stats.
In the producer-consumer model, users create queues where producers can post messages. Workers, or consumers, may then claim those messages and delete them once complete. A single claim may contain multiple messages, and administrators are given the ability to query claims for status.
In the publisher-subscriber model, messages are posted to a queue like above, but messages are never claimed. Instead, subscribers, or watchers, simply send GET requests to pull all messages since their last request. In this model, a message will remain in the queue, unclaimed, until the message's time to live (TTL) has expired.
Here is an overview of the Cloud Queues workflow:
- You create a queue to which producers post messages.
- Producers post messages to the queue.
- Workers claim messages from the queue, complete the work in that message, and delete the message.
- If a worker plans to be offline before its message completes, the worker can retire the claim TTL, putting the message back into the queue for another worker to claim.
- Subscribers monitor the claims of these queues to keep track of activity and help troubleshoot if things go wrong.
For the majority of use cases, Cloud Queues itself will not be responsible for the ordering of messages. If there is only a single producer, however, Cloud Queueing guarantees that messages are handled in a First In, First Out (FIFO) order.
- OpenCloud\Common\Base
- OpenCloud\Common\Service\AbstractService implements OpenCloud\Common\Service\ServiceInterface
- OpenCloud\Common\Service\CatalogService
- OpenCloud\Queues\Service implements Symfony\Component\EventDispatcher\EventSubscriberInterface
public static
|
|
public
|
#
appendClientIdToRequest( Guzzle\Common\Event $event )
Set the Client-ID header to all requests for this service. |
public
mixed
|
|
public
string
|
|
public
Queue
|
|
public
Collection
|
#
listQueues( array $params = array() )
This operation lists queues for the project, sorting the queues alphabetically by name. |
public
Queue
|
|
public
boolean
|
__construct(),
getBaseUrl(),
getExtensions(),
getName(),
getRegion(),
getType(),
getUrl(),
getUrlType(),
limits()
|
string |
DEFAULT_TYPE
|
'rax:queues' |
|
string |
DEFAULT_NAME
|
'cloudQueues' |
DEFAULT_URL_TYPE
|
$regionless
|
$client,
$endpoint,
$namespaces,
$resources
|
$aliases
|