setting max connections same as number of threads
added kinesis batching
added synchronization for sendRecord