For microservice HA, I know there's the "Active/Active" configuration as well as the "Active/Standby" configuration.
I'm wondering if you might use Leader Election for something in the middle. For example, say there are 3 microservices which all share the load of processing messages off a bus and storing them in a database. But only one of them is needed to do daily database purging. Might you use leader election to determine which one should do that task?
Or is that always a bad design and should you use a separate application for that instead?