New RunLLM response generated: >>>*# Question* Hi...
# ai-crosspost
r
New RunLLM response generated: >>>*# Question* Hi everyone We’re using Pulsar with strict schema governance - each namespace has
schemaValidationEnforced=true
and
isAllowAutoUpdateSchema=false
(only under an approved process), so only admins can push schemas. Here’s the issue: when a consumer is configured with a
DeadLetterPolicy
and a message fails too many times (or is negatively acknowledged repeatedly), the client will publish the message to a dead-letter topic (default name
<topic>-<subscription>-DLQ
) after the redelivery threshold. That topic doesn’t necessarily exist ahead of time (unless created before), so when it’s first used it may trigger topic creation and/or schema registration. Because our namespace forbids auto schema updates and enforces schemas, this can fail - the consumer isn’t authorized to register the schema for the DLQ topic. To work around this, we’re creating a separate namespace (e.g.,
<namespace>-dlq
) where: •
isAllowAutoUpdateSchema=true
•
schemaValidationEnforced=false
• so consumers can safely publish DLQ messages without schema conflicts. Is this the recommended approach? Is there a cleaner way to allow DLQ schema creation while keeping production namespaces locked down? Any official guidance or community best practices would be really appreciated 🙏 Thanks! # Answer Your approach—using a separate namespace for DLQ topics with relaxed schema policies—is the recommended and most practical solution when production namespaces have strict schema governance. This is because, with
schemaValidationEnforced=true
and
isAllowAutoUpdateSchema=false
, consumers cannot register new schemas or update existing ones on DLQ topics, leading to failures if the DLQ topic/schema does not already exist and match the message schema. By creating a dedicated DLQ namespace with
isAllowAutoUpdateSchema=true
and
schemaValidationEnforced=false
, you ensure DLQ messages can always be published, regardless of schema evolution in the main namespace, without compromising production schema controls. This pattern is referenced in Pulsar community discussions and aligns with how schema enforcement and auto-update policies interact in Pulsar (Pulsar schema docs, community issue).
>>There is no built-in Pulsar feature to allow only DLQ topics to bypass schema restrictions within a locked-down namespace; schema policies are enforced at the namespace or topic level, not by topic naming pattern. Therefore, your solution—segregating DLQ topics into a namespace with relaxed schema policies—is the cleanest and most robust way to maintain strict governance in production while ensuring DLQ functionality (Pulsar schema overview, StreamNative namespace policy docs). Would you like more detail on operationalizing this pattern or on alternative approaches?
Sources: - Pulsar schema docs - Pulsar community issue - Pulsar schema overview - StreamNative namespace policy docs Slack Link https://apache-pulsar.slack.com/archives/C5Z4T36F7/p1761765788.352689 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.