Logstash input/output parameters?

Hi,
Could anydoy explain below parameters in input and output plugin of logstash?

batch_count?
threads?
What is the trade off for better performance?
What is relation between workers and threads for one input or multiple inputs in one conf file? I have N nymber of Shippers with N ports open and N number of Indexers reading keys.
This will help me a lot for my project.

thanks
Sunil

Hello, you could read:

https://www.elastic.co/guide/en/logstash/current/pipeline.html