Allergy shots may be used when medicines do not relieve your symptoms. They are often given over a period of 3 to 5 years. During that time, you receive shots on a set schedule.