Giter VIP home page Giter VIP logo

queue-client-bundle's Introduction

Queue Client Bundle

Join the chat at https://gitter.im/ReputationVIP/queue-client

An easy way to use queue client library in Symfony project with its own Symfony bundle.

Available commands

  • queue-client:add-messages Add message in queue
  • queue-client:create-queues Create queues
  • queue-client:delete-queues Delete queues
  • queue-client:get-messages Get messages from queue
  • queue-client:list-priorities List priorities
  • queue-client:purge-queues Purge queues
  • queue-client:queues-info Display queues information

Use --help option for command usage.

Configuration

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'

General configuration

  • queues_file specifies the default queues configuration file.
  • priority_handler specifies the priority handler. Default is the ReputationVIP\QueueClient\PriorityHandler\StandardPriorityHandler.

Available adapter types

  • null a black hole type.
  • memory a memory type.
  • file a file queue type.
  • sqs a SQS queue type.

File type Configuration

  • repository: this config value set the absolute path of the repository which contains queues files (default /tmp/queues).

SQS type Configuration

  • key: this config value set the SQS key.
  • secret: this config value set the SQS secret.
  • region: this config value set the SQS region (default eu-west-1).
  • version: this config value set the SQS version (default 2012-11-05).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.