Leases, because death is invisible
A node that stops answering may be dead or merely slow. Ownership therefore expires on its own: a node keeps a lease only by renewing it, and a crashed leader is replaced after about one lease duration.
Leader election, leader-only work and distributed locks for the JVM, on the database, Redis or Zookeeper you already run. Bounded by leases, enforced with fencing tokens.