###RabbitMQ
- To work with the RabbitMQ used library php-amqplib/rabbitmq-bundle
- To add a task you should start provider
./app/console app:provider xml /your/directory/source-xml/
./app/console app:provider json /your/directory/source-json/
- To perform a task you should start a consumer:
./app/console rabbitmq:consumer upload_tasks
###ElasticSearch
- To work with ElasticSearch used library elasticsearch/elasticsearch
- There was created a service elasticsearch. It was injected into the upload_tasks_service(callback for a consumer).
###Structure
- TaskConsumer:
src/AppBundle/Consumer/TaskConsumer.php
- TaskProducer:
src/AppBundle/Producer/TaskProducer.php
- ProviderCommand:
src/AppBundle/Command/ProviderCommand.php
- ProviderCommand:
src/AppBundle/Command/ProviderCommand.php
- ElasticSearch service:
src/AppBundle/ElasticSearch/ElasticSearch.php