What's the difference between UDP workers and Pipeline Workers

As the question says, I am curious to understand the different impacts of having multiple Pipeline Workers and multiple UDP input plugin Workers.

No much information can be found in the documentation.

How would you size those 2 components?