You can dissolve salt and sugar with hot water it doesn't have to boil. However when I add solid spices in a brine, like pickling spice mix, bay leaf or Juniper berries I boil them for a few minutes then let them steep to get their full flavor.
Typically I only heat 2 quarts or less then cut that with ice and cold water.