One evening during our 2016 Japan trip, Ritsuko and I were shopping in the Akihabara district of Tokyo, and decided to stop in a restaurant near Akihabara Station for a quick snack before moving on.

Near Akihabara Station - Draft Beer Vending Machine

The chilled mug is tipped for pouring, and changes angle as the beer is dispensed.

Foam is added to form the perfect head.
In that restaurant, we saw the most marvelous of mechanical contraptions -- a draft beer vending machine. Ok, I must admit that I don't get out much, and that I am easily amused and entertained, but I thought this was just a great invention, and oh so practical. For ¥300, this machine, which is even equipped with a chiller in the lower part of the cabinet for glass mugs, pours a perfect mug of beer for the customer.
In the video below, Ritsuko demonstrates how it works:
Video of Ritsuko demonstrating the operation of a draft beer vending machine in a restaurant near Akihabara Station
We were each planning to drink just one glass of beer with our ramen, but watching the machine go through its paces was so entertaining that we each had to buy another round, just so we could watch the it run a couple more cycles.
In Japan, automated conveniences like vending machines are like a cultural and industrial art form, and this draft beer vending machine is truly a work of art.

Draft beer, perfectly poured into a chilled mug -- automation nirvana