Purging
Purging provides a mechanism to remove queues and queued events of a disconnected subscriber. These events take up disk space which is utilized otherwise.
An example of when purging is optionally applied.
Two subscribers EventAnalytics and EC are subscribed to a publisher called M3. EC has registered to EventHub but is unavailable for a long time. Because EC is still registered, events are persisted by EventHub and keep queuing up on the disk. When EC returns, the queued up data is unnecessary. Therefore, the user can delete this data. It is possible to use a purge operation in this scenario.
This kind of situation can arise in a test environment where test subscribers are registered and do not return or are intermittently available. If you are sure the subscriber never returns there is an option to delete the subscriber.
These variances of purging are supported in EventHub:
-
Manual purging
-
Automatic purging
The default behavior is no purging.