Best practices

Sensor information is often streamed from connected machines to help monitor equipment status, efficiency, and safety. You can see this data pattern in smart factories, smart buildings, and even in motorsports with connected race cars. The messages inform race teams so they can make better race strategy and maintenance decisions in real time.

Sensor data messages are typically very small—typically around 10 bytes, and they contain fields like sensor ID and sensor reading value (e.g., temperature, tire pressure, or RPM).

The sensor data message rate is extremely high in motorsports. It’s not unusual to see two million messages per second (m/s) because the state of the race car changes so dramatically within each fraction of a second during the race.

Therefore, the proposed partition calculator inputs for connected race car sensor data streams in motorsports, would look as follows.

Kafka UI for your team

Results

number of producers
256
number of consumer
256
Expected lag
150
number of partitions
256

Business size preset

The size of the company in terms of article production (not number of employees, readership numbers, market capitalization, etc…)
Medium

Number of brokers

The number of brokers in the cluster where the topic will be created.
1 140

Producer processing time

The average time it takes to produce a message in ms.
ms
0.1 ms1,000 ms

Consumer processing time

The average amount of time it takes to consume a message in ms.
ms
0.1 ms1,000 ms

Throughput

The amount of messages that the system should process per second.
msg/s
1 msg/s10,000 msg/s

How to increase partitions

Learn how to to increase your topic partitions and what effects this will have on your cluster.

Read full article

Recommended configuration for a medium business size

  • An expected lag (L) of X1, given the massive volume of messages to process.
  • A recommended producer count (RP) of X2, to maintain the desired throughput..
  • Consumers (RC) match the broker count at X3, allowing for efficient message digestion.
  • With X4 partitions (NP), data distribution is maximized for optimal processing.

This configuration ensures that motorsport teams receive immediate insights from their vehicles, allowing for swift decisions during races that ensure high performance and safety.