One Use Case for TPL
TPL is a set of libraries from Microsoft that can be used for parallel
processing, basically it is a set of high level tools that can make your code
run in parallel. TPL is not a panacea for parallel processing, mainly because
you don’t always need parallel processing, but when you need it, it can be a
life-saver.
The system
The system was built with a simple purpose, to consume and process events
delivered by Kafka. The events were published, in Avro format, by a separate
system, let’s call it producer. Essentially the events represent a course of
actions, which are used to produce our model. Eventually that model is publicly
exposed through an API (not HTTP). Everything was built using C# on dotnet core
and ran on a docker container on linux hosts.