DEF consumption is a percentage of fuel consumption. The more fuel you consumer per mile the more DEF you will also consume. With my Duramax I get roughly 1000 miles per gallon of DEF when not towing and roughly 750 miles per gallon when towing.
When traveling and in general I get DEF at the pumps which is available at most truck stops and many Shell gas stations that sell diesel. That way I can get the DEF tank to 100% full and the DEF is fresher.
DEF is most expensive and least fresh when you buy it in the 2.5 gallon plastic containers at a big box or chain store. Buy it at the pumps and there is no question as to how fresh it will be. DEF also degrades with temperature and exposure to sunlight so sitting underground at a fuel station is a good way to keep it in the best possible condition until it goes into the tank on your truck.
Fresh DEF is enough of a concern that the feds are moving to reduce the maximum allowed size of the DEF tanks on the big rigs so that they will be getting fresh DEF each time they fill up the diesel fuel tanks.