We al know best form of defence is an attack, however, once you have a good attack force no harm in building on your defences.
A good wall defence should have a good mix i aim for at least 10KAT rest can vary but my current build 2kDT 10KAT 5K traps 3k abatis is not a bad defence.
Next once you have your attack force no harm in building a garrison. These troops are not for attack but permenant station in your city as part of your city defences.
For this I recommend swordsmen solid defence against other foot troops, pikemen theyare best defence against cav,and cataphracts these are as strong in defence as cav in attack.
Ballistas and Archers are a real boost to defences,these should already be part of your attack force. Catapults are expensive but great defence, if you get a mechanical battalion cheer. (Warning always deploy mech bats with great care they eat like gannets)
Above all DO NOT STOCKPILE RESOURCES, unless you wish to draw attacks to death on your amazing defences?