The challenge for a compact motor is the perfect interplay of all components - with the appropriate encoder solution, you also save on installation space and costs.
Incremental encoders for asynchronous and geared motors.
Multiturn encoder with identical depth as an incremental encoder.
Save costs for redevelopment or redesign - your motor remains just the way it is.
Bearingless encoders for even more compact motors.
https://www.kuebler.com