vaquarkhan commented on code in PR #666:
URL: https://github.com/apache/burr/pull/666#discussion_r2937973256
##########
burr/tracking/server/backend.py:
##########
@@ -162,6 +162,31 @@ def snapshot_interval_milliseconds(self) -> Optional[int]:
pass
+class EventDrivenBackendMixin(abc.ABC):
+ """Mixin for backends that support event-driven updates via SQS.
+
+ BIP-0042: This mixin enables backends to receive real-time notifications
+ from SQS instead of polling S3 for new files.
+ """
+
+ @abc.abstractmethod
+ async def start_sqs_consumer(self):
+ """Start the SQS consumer for event-driven tracking.
+
+ This method should run indefinitely, processing S3 event notifications
+ from the configured SQS queue.
+ """
+ pass
Review Comment:
Accepted
--
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]