It depends on the range of gears that you have. The bigger the range, the longer the cage tends to need to be. One of my road bikes has a triple chain ring and a long cage, the other has a compact (two chainring) set-up and has a short cage. The technical documents published online by the gear manufacturer will tell you which cage you officially need, but you can often break their rules with little lack of performance.