zf-fr / zfr-eb-worker

ZfrEbWorker is a thin layer to simplify the usage of SQS queues and Elastic Beanstalk environments
MIT License
8 stars 2 forks source link

Considering little optimization on 5.3 release #55

Closed wysow closed 6 years ago

wysow commented 6 years ago

Hello,

We do have one of our microservices on php 7.0 and so using 5.3 release of this library, but we are facing a problem with how messages are created, do you think we can add this little fix in doFlush function of MessageQueue class after line 111:

'MessageAttributes' => [
    'Name' => [
        'DataType'    => 'String',
        'StringValue' => $message['body']['name'],
    ],
],

So that the message name can be retrieved by another micro-service using latest release?

wysow commented 6 years ago

Seems like php 7.1 listener should handle both message type if we do that, right?

bakura10 commented 6 years ago

Hi,

We didn't keep a branch for 5.x version and master is on 6.x. @danizord , what would be the best approach to release a version of 5.x branch to include this?

danizord commented 6 years ago

@bakura10 just pushed a release/5.3.0 branch based on 5.3.0 tag.

@wysow can you send a PR targeting this branch? We'll merge it and release 5.3.1 :)

wysow commented 6 years ago

Sure wiil do, already done this on our fork ;) do you confirm that our solution sounds good for you?

bakura10 commented 6 years ago

Yes the solution looks good :). It's actually something I should have done to help migrate between the two different message models.

wysow commented 6 years ago

PR done in #56