We are processing messages from different producers in our Lambdas, so we need different Serializers. This is an example of our definition:
framework:
messenger:
transports:
priority:
dsn: '%env(xxx)%'
serializer: messenger.transport.symfony_serializer
dataUpdate:
dsn: '%env(xxx)%'
serializer: App\DataUpdate\DataUpdateMessageSerializer
priceUpdate:
dsn: '%env(xxx)%'
serializer: App\PriceUpdate\PriceUpdateMessageSerializer
According to the documentation, I tried to specify a serializer for SqsConsumer. But how to add them there? It is possible to specify only 1 serializer there.