[ 
https://issues.apache.org/jira/browse/JAMES-3700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17514520#comment-17514520
 ] 

Ha Anh Vu commented on JAMES-3700:
----------------------------------

> We don't need to manage what is in dead-letter: administrators will take care 
> of monitoring it, and re-deliver those messages if need be.

Ok I see. So basically the first thing we have to do here is define schemas for 
topics. From ADR 51, I see that we have out topic, scheduled topic, and filter 
topic. So we have to define JSON schemas for all of them. Right?

The ADR 51 and the Pulsar document already have good instructions on how to 
define schemas. Besides those, do you have anything else to add or recommend?

> Dead letter policy for the Pulsar MailQueue
> -------------------------------------------
>
>                 Key: JAMES-3700
>                 URL: https://issues.apache.org/jira/browse/JAMES-3700
>             Project: James Server
>          Issue Type: Sub-task
>          Components: pulsar, Queue
>    Affects Versions: master
>            Reporter: Benoit Tellier
>            Priority: Major
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> Currently the Pulsar MailQueue do not come up with a dead-letter policy.
> A bad JSON payload halts the processing. 
> This makes the Pulsar MailQeue brittle:
>   - The ability to inject a single message with a bad payload can cause an 
> entire James cluster to come to a halt.
>  - Could be seen as an attack vector
>  - But also any changes to the underlying JSON schema for payloads is 
> susceptible to cause major downtime.
> We should define a deadletter policy:
>  - Given a number of failures delivery of the message would be abandonned
>  - And moved to a dead-letter topic for later audit (prevent data loss)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to