Introduce batch sizing.

You can specify a batch size when initializing a client.
When the number of log messages buffered equals the batch size,
the client will submit them to the server.