lendo-stp-gdansk/lendo-infrastructure-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Infrastructure bundle for Lendo projects usage


README

TravisCI

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

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.