Can I use the chunk function?
I'm wondering if it's going to be implemented.
If you can use it, I hope you have a friendly example.
My particular message is so big that I need the Chunk feature.
thx.
@fwang-laralabs afaik this is not implemented atm, can you maybe quickly elaborate what it does and what you need it for?
My specific message size is 1245858 (1.24k).
I need the ability to send messages in pieces.
I'm producing a message but it's not displaying in the consumer console. (Other messages are well consumed.)
It would be convenient to have a chunk-like interface for laravel collections.
(https://laravel.com/docs/5.8/collections#method-chunk)
@nick-zh what is atm?
atm = at the moment :smiley:
@fwang-laralabs ah ok i understand, i might be mistaken, but i think Kafka doesn't have this feature.
So unless i am mistaken, there are mutiple solutions:
message.max.bytes on producer and broker)chunk_group_id and a chunk_sequence or something similar to achieve this@fwang-laralabs regarding implementing this in your application, maybe this article helps, it elaborates a bit more how you would do this on the producer / consumer side:
https://medium.com/workday-engineering/large-message-handling-with-kafka-chunking-vs-external-store-33b0fc4ccf14
.../opt/kafka/config# vi /opt/kafka/config/server.properties
message.max.bytes=10000000
server.properties μ μμ νκ³ ν
μ€νΈ ν΄λ³΄μμ΅λλ€.
μ μλμνμ§ μμμ, producer μͺ½λ μμ ν΄ λ³΄μμ΅λλ€.
.../opt/kafka/config# vi /opt/kafka/config/producer.properties
max.request.size=10000000
νμ§λ§ μ¬μ ν ν° λ©μΈμ§λ λμ νμ§ μμ΅λλ€. :(
μ΄μ λν λΆλΆμ μ°Ύκ³ μμ΅λλ€.
chunking μ ν μ§, μλ² μμ μ ν΅ν ν° λ©μΈμ§ μ λ¬μ΄ κ°λ₯νλλ‘ ν μ§ κ³ λ―Όμ€μ λλ€.
λΉμ μ λ΅λ³ κ°μ¬ν©λλ€.
for the producer you also need to set the setting message.max.bytes (PHP)
Can I do this?
$pconf = new Conf();
$pconf->set("message.max.bytes", 10000000 );
$this->producer = new Producer( $pconf );
Let's try it.
Thank you for your kind reply. :)
@fwang-laralabs yes, this should work if the broker is set correctly as well :+1:
Let me know if it works
Works fine. Thanks to :)