Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a general question regarding performance #77

Open
liujoey opened this issue Mar 1, 2021 · 0 comments
Open

a general question regarding performance #77

liujoey opened this issue Mar 1, 2021 · 0 comments

Comments

@liujoey
Copy link

liujoey commented Mar 1, 2021

Hi,

I have a very general question regarding saving the message list in the kafka table.

I have a topic, the interval between each message is about 5 seconds. Now I want to compute mean of that topic for a window size of 4 weeks. According to your implementation, it means the table needs to be updated for every 5 seconds and there will be 4 weeks worth of data sitting in a single window.

Now my concern is about the following three lines of code:

messages = table["{{ source_topic_name }}"].value()
messages.append(message)
table["{{ source_topic_name }}"] = messages

Since messages in my case will be a huge list (483840 messages for the whole 4 weeks, and this is only for 1 user, I need to handle 1 million users, so...), my concern is that the table_change_log in Kafka will become huge as well.
My question, is Faust been optimized such that the append operation in above example ONLY append one message to the change log, or otherwise the change log actually needs to exchange 4 weeks of data points in and out for every update?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant