limit number of messages sent at once

prevents udp delivery from failing due to size of packet
if BatchSize isn't set, send all at once