Rotary encoders are great devices. Monitoring just a few pins you can easily and quickly read in rotation and direction of a user input (as well as many other applications). But as with anything, ...
The IXARC rotary encoders now include housings that are only 27 mm long. This reduced length, combined with a diameter of only 36 mm, means that these super-compact devices are ideal for tight spaces.