Replies: 1 comment
-
I think this depends on use case specifics. SQS allows for the storing of messages and for the consuming processes to attempt to process the message and allows for more error handling scenarios with features such as dead-letter queues. That being said the process is completely configurable, so you could do something like the following for your use case. const destination = new EventBridgeDestination(new EventBus(this, 'rScanBus'));
new ServerlessClamscan(this, 'rServerlessClamscan',
{
onResult: destination,
onError: destination
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have a question regarding the error flow.
Currently the error flow is different from the SUCCESS, INFECTED flow as it is directly pushing errors to sqs and is not send as an event to the bus.
e.g. if I have a lambda which is processing the outcome of the virus scan, it would also be nice to get notified about errors the same way as we are currently notified about success or infected.
Not sure if it makes sense to have a unified flow.
Beta Was this translation helpful? Give feedback.
All reactions