Comments (6)
Add one more transport specific exception to workaround messenger abstraction.
from messenger-enqueue-transport.
Can you give me some tips on how can I do it? Eg: if the database timedout, I can't throw that transport specific exception (In my application domain). Sorry if I don't understand what you had said, I'm a beginner developer.
from messenger-enqueue-transport.
- catch your domain exception
- throw a special exception that instructs an underlying transport not to do anything. Has to be implemented.
Btw enqueue itself does not get in your way. If you do not catch exception it will be redelivered once visibility timeout. If you catch it you can decide what to do: ack, reject or requeue.
from messenger-enqueue-transport.
That's the problem, it I'm not catching the exception and it is not being redelivered on visibility timeout.
from messenger-enqueue-transport.
yeap it's because transport is trying to be smart https://github.com/php-enqueue/messenger-adapter/blob/master/QueueInteropTransport.php#L99
from messenger-enqueue-transport.
hey, i've got the same problem. Did u solve your problem @malheirosrafa ? because I could not really understand the explanation given since for me it was the same Post you've made @makasim, the best
way to solve is to extend the SQS Transport and override the Receive method?
if so, can you post some examples yourself?
from messenger-enqueue-transport.
Related Issues (20)
- [Symfony][4.3] Multienviroment support
- Argument 1 passed to Enqueue\Doctrine\DoctrineConnectionFactoryFactory::__construct() must be an instance of Doctrine\Common\Persistence\ManagerRegistry, instance of Doctrine\Bundle\DoctrineBundle\Registry given, called in Container8oM08ig/App_KernelDevDebugContainer.php on line 1027 HOT 2
- How to set serializer on context HOT 5
- Consumption extensions
- Update dependencies for Support Symfony 6.0 HOT 2
- The "failed" receiver does not support listing or showing specific messages
- GPS 'authCache'
- [ActiveMQ][STOMP] Every second message skipped HOT 1
- Option to send to queue when used as `framework:sender` HOT 1
- Consuming multiple Kafka topics
- Add flush($timeout) method optional call for sending messages through Enqueue\RdKafka to make it sync
- How to access the Kafka "key" property when consuming? Or any other Kafka specific metadata? HOT 1
- Symfony 7 support HOT 1
- [QUESTION] Can't consume messages from third-party GPS publisher HOT 1
- Symfony 7
- QueueInteropTransport with RabbitMQ and Symfony Serializer does not send stamps
- It's not possible to pass consumer specific options from DSN HOT 6
- Message is not rejected when serializer throws MessageDecodingFailedException
- Communication channels for kafka-related topics
- RdKafkaConsumer subscribes to queue name instead of topic name HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from messenger-enqueue-transport.