# Kafka record size in between 10-100MB

**URL:** <https://forum.confluent.io/t/kafka-record-size-in-between-10-100mb/5330>\
**Category:** Clients\
**Created:** [20 June 2022 13:02 UTC](https://forum.confluent.io/t/kafka-record-size-in-between-10-100mb/5330 "2022-06-20T13:02:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shubhamshirur](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@shubhamshirur](https://forum.confluent.io/u/shubhamshirur)\
**Post date:** [20 June 2022 13:02 UTC](https://forum.confluent.io/t/kafka-record-size-in-between-10-100mb/5330/1 "2022-06-20T13:02:18Z")

</div>

Hello,

How can I handle if single records size is in between 10-100MB? What should be ideal solution?

I am sharing content of file over kafka which has mapping of 1 record : 1 file’s content.

Thanks

---

<div class="post-metadata">

**Author:** ![mitchell-h](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/mitchell-h/32/1129_2.png) [@mitchell-h](https://forum.confluent.io/u/mitchell-h)\
**Post date:** [19 July 2022 18:01 UTC](https://forum.confluent.io/t/kafka-record-size-in-between-10-100mb/5330/2 "2022-07-19T18:01:19Z")

</div>

It’s possible to configure Kafka and clients to handle messages that large. It’s not a good idea, causes all sorts of CPU and JVM heap issues.

The best method to do this is to place the large blobs on something like S3 and ship the URI in the kafka message.

---

<div class="post-metadata">

**Author:** ![shubhamshirur](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@shubhamshirur](https://forum.confluent.io/u/shubhamshirur)\
**Post date:** [20 July 2022 05:33 UTC](https://forum.confluent.io/t/kafka-record-size-in-between-10-100mb/5330/3 "2022-07-20T05:33:03Z")

</div>

@mitchell-h Thanks, that helps.
