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

KTable #109

Open
akshdeep30 opened this issue May 10, 2019 · 4 comments
Open

KTable #109

akshdeep30 opened this issue May 10, 2019 · 4 comments

Comments

@akshdeep30
Copy link

Hey Team

I am new to Kafka and Kafka Streams,
I want to create Ktable using my topic and want to fetch all the data present in the topic the messages can be a week old, and want to filter the messages on the basis of payload, Can you guys please help me how to achieve that. and also i want to know for long can KTable store data.

Any reply and help would be appreciated

Thanks

@akshdeep30
Copy link
Author

Hey Team

Any Update on this??

Thanks

@krystianity
Copy link
Member

Hi @akshdeep30 KTable (at least this implementation) stores data in memory of your application, depending on the number of partitions and instances of your application (consumer-groups spreading).

It really depends on the amount of messages you want to process and the size of the events that you want to store in KTable.

If you are not running window like one shot operations its probably a better idea to store the data that you need a database while filtering beforehand using a KStream or a simple Kafka Consumer.

@akshdeep30
Copy link
Author

So you mean so say that Ktable does not stores data permanently? So we have to save data in database either using kafka-connect, consumer or streams, right?

@akshdeep30
Copy link
Author

Hey Team
Any update would be helpful from you guys :)
Thanks

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

No branches or pull requests

3 participants