0
votes

IF producer is sending message of large message size (let's say 120 MB). How does kahadb and levelDB handle such messages.

kahadb: What I understand is journal size is 32 MB by default. and If i send message more than 32MB, how it will handle such message ? Do I need to change this size to appropriate value according to message size?

leveldb: By default 100mB is default size to store message data. After which rolling happens. IF message is more than 100mB. How does it handle ?

Thanks,
ANuj

1

1 Answers

0
votes

For Kahadb we have rolling log of messages, messages and commands are stored in data file of fixed length,if the length exceeds the size of message journal then new file is created. KahaDB just appends the new message to existing journal and takes care of creating new journal.

Also,KahaDB holds indexes to messages in form a BTree.These Btree indexes hold references to the messages in data logs indexed by their message ID.In short KahaDB will know exactly where your message is stored with the help of this index.So, adding any new configuration for storing this message should not be required

Regarding the whole message in single data log file, I am not sure may be bit research needed and before trying your luck at changing the journalSizeLength for KahaDB please got through this link (reading comments there might be helpful)

Good luck!

Hope it helps.