gosonzhang opened a new issue, #8161: URL: https://github.com/apache/inlong/issues/8161
### Description In the current sink implementation, the event is obtained from the channel and is ready to be sent. V1 messages need to be sent in batches but V0 messages do not. Sink uses BatchPackProfile and its subclasses SimpleBatchPackProfileV0 and OrderBatchPackProfileV0 for corresponding processing. From the analysis of the implementation, this class can be optimized, by defining an abstract class, the common attributes and operations of the three classes, BatchPackProfile, SimpleBatchPackProfileV0, and OrderBatchPackProfileV0, are extracted, and then the events of V0 and V1 are processed separately, which can simplify the current implementation. This issue is for this category improvement ### InLong Component InLong DataProxy ### Are you willing to submit PR? - [X] Yes, I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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]
