An easy way to use queue client library in Symfony project with its own Symfony bundle.
queue-client:add-messages
Add message in queuequeue-client:create-queues
Create queuesqueue-client:delete-queues
Delete queuesqueue-client:get-messages
Get messages from queuequeue-client:list-priorities
List prioritiesqueue-client:purge-queues
Purge queuesqueue-client:queues-info
Display queues information
Use --help
option for command usage.
Add queue client configuration in config.yml and retrieve the service using Symfony container.
container->get('queue-client')
queue_client
node needs an adapter
node to define the adapter to be used.
adapter
node must define a type
parameter (see "Available adapter types")
Then add specific configuration for each type
.
queue_client:
adapter:
type: queue type
Sample configuration:
queue_client:
queues_file: %kernel.root_dir%/config/queues.yml
adapter:
type: file
repository: /tmp/queues
priority_handler: 'ReputationVIP\QueueClient\PriorityHandler\ThreeLevelPriorityHandler'
queues_file
specifies the default queues configuration file.queue_prefix
specifies a queue prefix can use in queues configuration file.priority_handler
specifies the priority handler. Default is theReputationVIP\QueueClient\PriorityHandler\StandardPriorityHandler
.
null
a black hole type.memory
a memory type.file
a file queue type.sqs
a SQS queue type.
repository
: this config value set the absolute path of the repository which contains queues files (default/tmp/queues
).
key:
this config value set the SQS key.secret:
this config value set the SQS secret.region:
this config value set the SQS region (defaulteu-west-1
).version:
this config value set the SQS version (default2012-11-05
).