Just use at the choke points like river cross or mountion pass.
Put 2-4 good archer units there and kill the attacker at least 5-10 times of them.