rdhabalia opened a new pull request #12235:
URL: https://github.com/apache/pulsar/pull/12235


   ### Motivation
   Users select the topic type based on the application use case and 
requirement of topic behavior. However, in some circumstances, users need some 
additional behavior on top of the existing implementation and even would like 
to inject custom workflow in existing topic behavior. Such special 
circumstances are mostly needed when users would like to do smooth migrations 
of topics or pulsar clusters without impacting producer and consumer 
applications. In such scenarios, users can override publish or dispatch 
behavior of the topic and plug in the additional workflow. For example: perform 
dual write on multiple topics while migration or, skip messages published from 
the specific source without explicit publish failures, ignore specific 
subscription source without generating a client-side error, or without 
impacting client applications. This feature will be useful for any kind of 
migration where the pulsar cluster is serving live topics and require custom 
topic level treatment for flawles
 s server-side migration and without impacting client application especially 
legacy applications which are hard to change.
   
   ### Modification
   - Add broker side config `topicFactoryClassName` and `TopicFactory` 
interface.
   - Mark feature is an experimental feature to accommodate future API changes.
   
   ### Result
   - Users can create topic with custom workflow for their server-side 
migration usecases.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to