lendo-infrastructure-bundle
Common bundle with implementations for specific infrastructure, used by lendo services
Storages
Event storage
Cassandra
m6web/cassandra-bundle:dev-master
Tested on: 2.2 and 3.10
Projection storage
Elasticsearch
ulff/elasticsearch-php-client-bundle:1.0
Tested on: 2.2 - 2.4
ulff/elasticsearch-php-client-bundle:2.0
Tested on: 5.0+
Queue messages
RabbitMQ
- php-amqplib/rabbitmq-bundle:1.11
- Lendo\InfrastructureBundle\RabbitMQ\BaseProducer is taking advantage of delayed-message-exchange plugin (x-delay header set up). It is configurable in config.yml:
lendo_infrastructure:
rabbit_config:
dead_letter_delay: xx
Default value is 30 seconds and it is available as parameter lendo_infrastructure.rabbit.dead_letter_delay
.
- to enable logging for producer set:
lendo_infrastructure:
rabbit_config:
producers:
producer-name:
enable_logger: true
Tested on: 3.6.9
InMemory
External resources
To provide external resources configuration add to your service in config.yml
lendo_infrastructure:
external_resources:
-
service: "service_name"
url: "%service_url%"
path: "/path/{id}"
headers:
Accept: application/vnd.lendo.service_name+json
Configuration will be available as a parameter resource.service_name
.