Potentially invalid RabbitMQ deliveryTag type.

Hello,
I found that Spryker defines QueueReceiveMessageTransfer::deliveryTag
as string.
Is it correct?
RabbitMQ documentation says it is longlong
, so shouldn't it be int
in PHP?
See https://www.rabbitmq.com/amqp-0-9-1-reference.html#domain.delivery-tag
Comments
-
hi, @przemyslaw.szychowski !
That's an interesting finding, though I think it doesn't require any updates in the Vendor code.
longlong is essentially int(64), and thus it could be safely stored in the string.
Since the object is not directly related to the RMQ, string type makes it possible to store any value, not only RMQ specific number.
If you think that due to performance limitations type is important, I suggest you to create an additional field and store integer value there.
Brief check of the Php AMQP library shows that the change of the type might be needed, once it starts using strict types.
1
Categories
- All Categories
- 38 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 33 Spryker News
- 565 Developer Corner
- 435 Spryker Development
- 54 Spryker Dev Environment
- 296 Spryker Releases
- 30 Propel ORM
- 47 Community Projects
- 6 Gacela Project
- 3 PHP Bridge
- 21 Hackathon
- 3.2K 📜 Slack Archives
- 115 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random
- 4 Code Testing
- 23 Product & Business Questions
- 46 Spryker Safari Questions
- 36 The Blackhole