Automatic Chunking #6320
Material-Scientist
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
That’s what the object store is for :) Nats isn’t optimised for big payloads 2 or 3MB max is a good rule |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I recently had a problem where I got
indexCacheBuf corrupt record state: dlen 46134798 slen 21 index 0 rl 46134820 lbuf 46134820
when trying to upload a 40MB file to the KV store, despite settingmax_payload
to 64MB in the NATS server config.But maybe instead of increasing the maximum msg size, it would be a better idea to add a way for NATS to automatically chunk the object into 8MB fragments, and only store the references in the KV store.
AFAIK, that's how NATS object store works. So, why not just use the same automatic chunking everywhere (even pub/sub)?
It would push the burden of checking file-sizes and chunking from the user to the messaging system.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions