There's actually an even more common example that what you've described: water heaters. The cold inlet at the bottom and the hot outlet at the top prevent mixing, and the two waters of different temperatures can maintain their difference for a surprisingly long time.
https://www.youtube.com/watch?v=Bm7L-2J52GU
(technology connections describing it)