{"id":16954768,"url":"https://github.com/vtsykun/redis-message-queue","last_synced_at":"2025-04-11T21:51:42.177Z","repository":{"id":57030754,"uuid":"82402968","full_name":"vtsykun/redis-message-queue","owner":"vtsykun","description":"The redis message queue transport for Oro Platform","archived":false,"fork":false,"pushed_at":"2017-08-05T21:28:36.000Z","size":117,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-25T17:49:33.314Z","etag":null,"topics":["message-queue","oro-platform","oroplatform","redis-queue"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vtsykun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-18T17:15:46.000Z","updated_at":"2025-02-09T12:24:01.000Z","dependencies_parsed_at":"2022-08-23T17:40:57.348Z","dependency_job_id":null,"html_url":"https://github.com/vtsykun/redis-message-queue","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtsykun%2Fredis-message-queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtsykun%2Fredis-message-queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtsykun%2Fredis-message-queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtsykun%2Fredis-message-queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vtsykun","download_url":"https://codeload.github.com/vtsykun/redis-message-queue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248487733,"owners_count":21112188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["message-queue","oro-platform","oroplatform","redis-queue"],"created_at":"2024-10-13T22:10:32.030Z","updated_at":"2025-04-11T21:51:42.154Z","avatar_url":"https://github.com/vtsykun.png","language":"PHP","readme":"# OkvpnRedisQueueBundle ![OkvpnRedisQueueBundle](./src/Resources/doc/img/redis.png)\n  \n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/40a378ee-6fb9-438b-9f23-262661b5ce2c/mini.png)](https://insight.sensiolabs.com/projects/40a378ee-6fb9-438b-9f23-262661b5ce2c)\n[![Latest Stable Version](https://poser.pugx.org/okvpn/redis-queue-bundle/v/stable)](https://packagist.org/packages/okvpn/redis-queue-bundle)\n[![License](https://poser.pugx.org/okvpn/redis-queue-bundle/license)](https://packagist.org/packages/okvpn/redis-queue-bundle)\n[![The Builds](https://travis-ci.org/vtsykun/redis-message-queue.svg?branch=master)](https://travis-ci.org/vtsykun/redis-message-queue)\n\n--------------------------------\nThe bundle integrates OroMessageQueue component. It provides more faster redis message queue transport for oro-platform\nvs DBAL. See [OroMessageBundle](https://github.com/orocrm/platform/tree/master/src/Oro/Bundle/MessageQueueBundle) for details.\n\n## Install and Test Dependencies\n\n#### Install Redis\n\n```bash\nsudo apt-get update\nsudo apt-get install redis-server\nsudo apt-get install php7.0-redis\n```\n\nCheck that Redis is up \u0026 running:\n\n```\nredis-benchmark -q -n 5000\n\nOutput:\nPING_INLINE: 102040.82 requests per second\nPING_BULK: 208333.33 requests per second\nSET: 238095.23 requests per second\nGET: 227272.73 requests per second\nINCR: 238095.23 requests per second\nLPUSH: 227272.73 requests per second\nLPOP: 217391.30 requests per second\nSADD: 227272.73 requests per second\nSPOP: 227272.73 requests per second\nLPUSH (needed to benchmark LRANGE): 238095.23 requests per second\nLRANGE_100 (first 100 elements): 90909.09 requests per second\nLRANGE_300 (first 300 elements): 27472.53 requests per second\nLRANGE_500 (first 450 elements): 19011.41 requests per second\nLRANGE_600 (first 600 elements): 14619.88 requests per second\nMSET (10 keys): 166666.67 requests per second\n```\n#### Install using composer\n\n```bash\ncomposer require okvpn/redis-queue-bundle\n```\n\n### Usage\nFirst, you have to configure a transport layer and set one to be default. For the config settings.\n\n```yaml\n# app/config/config.yml\n\noro_message_queue:\n  transport:\n    default: 'redis'\n    redis:\n      dsn: 'redis://pass@localhost:6379/0'\n```\n\nWe can configure one of the supported transports via parameters:\n\n```yaml\n# app/config/config.yml\n\noro_message_queue:\n    transport:\n        default: '%message_queue_transport%'\n        '%message_queue_transport%': '%message_queue_transport_config%'\n    client: ~\n```\n\n```yaml\n# app/config/parameters.yml\n\n    message_queue_transport: 'redis'\n    message_queue_transport_config: { dsn: 'redis://pass@localhost:6379/0' }\n```\n\n### Supervisord\n\nAs you read before you must keep running `oro:message-queue:consume` command and to do this best\nwe advise you to delegate this responsibility to [Supervisord](http://supervisord.org/).\nWith next program configuration supervisord keeps running four simultaneous instances of\n`php app/console oro:message-queue:consume` command and cares about relaunch if instance has dead by any reason.\n\n```ini\n[program:oro_message_consumer]\ncommand=/path/to/app/console --env=prod --no-debug oro:message-queue:consume\nprocess_name=%(program_name)s_%(process_num)02d\nnumprocs=4\nautostart=true\nautorestart=true\nstartsecs=0\nuser=www-data\n```\n\n## License\n\nMIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvtsykun%2Fredis-message-queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvtsykun%2Fredis-message-queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvtsykun%2Fredis-message-queue/lists"}