Without knowing the time-period or country involved, this is sort of a confusing question. Often times military service is tied directly to economic circumstances. There are some good books on the subject. One in particular is "All for the King's Shillig" by Dr. Ed Coss. It is England during the Napoleonic era.