Mastodon uses redis sorted sets and publish/subscribe for timelines and real-time message delivery respectively. And for background processing. It's not easily replaceable, plus it's a super lightweight dependency and a lot of projects nowadays use redis as well.