This is a very classic yoga practise. Almost every teacher will teach some version and if you are in one of the Holy cities on the Ganges in India you will most likely see people practising. I learned this version in the Himalayas from one of my earliest and most inspiring yoga teachers.
It's basically good for everything. You can practise slowly if you feel stiff or tired. If you want a vigorous workout with more aerobic activity it's great to practise it with a quick rhythm.
Once you know it well and you can get into a good smooth flow, it will help you release endorphins super quick.