Skip to content

Commit

Permalink
Reduce the kafka message size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ktl-XV committed Oct 12, 2023
1 parent 2676e6d commit f1ee3c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/kafka_send.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export async function kafkaSendRawAsync(
keyFields: string[],
payload: any[],
): Promise<void> {
const MAX_SIZE = 500000; // 1MB
const MAX_SIZE = 400000;

let currentSize = 0;
let messages = [];
Expand Down

0 comments on commit f1ee3c5

Please sign in to comment.