Skip to content

Different amqp handle props in different manner. #719

Closed

Description

@marhub

Actual result:
in amqp bunny transport props are put into headers.application_headers
in ampq-lib transport, props are put into headers

Expected result:
I can see props next to headers, not injected into headers key.

If that's expected result - then someone can please explain me why?

Activity

  1. makasim commented on Jan 7, 2019

    @makasim
    Member

    This behavior is expected. AMQP sends properties as a special header called "application_headers".

  2. marhub commented on Feb 4, 2019

    @marhub
    Author

    @makasim Sorry, but you do not get me.

    considering following code:

    $headers = [
           'reply_to' => $replyToQueue->getQueueName(),
           'correlation_id' => Uuid::uuid4()->toString()
    ];
    $message = $this->context->createMessage(
           json_encode($data),
           [], // props
           $headers 
    );

    when using Enqueue\AmqpBunny\AmqpConnectionFactory => message ( seems to be not ok ):

    image

    when using Enqueue\AmqpLib\AmqpConnectionFactory => message is different ( seems to be ok )

    image

    I expect them to be same in all implementations!

  3. makasim commented on Feb 4, 2019

    @makasim
    Member

    Agree, have you found out why this happens?

  4. reopened this on Feb 4, 2019
  5. marhub commented on Feb 11, 2019

    @marhub
    Author

    I belive it's due to internal implementation of bunny lib

  6. makasim commented on Feb 19, 2019

    @makasim
    Member

    I belive it's due to internal implementation of bunny lib

    closing than, should be addressed in bunny repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions