I currently have a producer producing a Kafka topic with messages containing average score of, something similar to the below:
{
"post_id": "post_123",
"sentiment_score: "0.6789"
}
The kafka cluster is being hosted on Confluent cloud and I'm using confluent_kafka
library to process these messages. However, it now has come to the point where, in order to process a message, I need the average sentiment_score
of all the posts within the past 1 day.
What would be the best way to do it now? Thank you!