sroze / messenger-enqueue-transport

Uses Enqueue with Symfony's Messenger component.
MIT License
191 stars 55 forks source link

Enrich documentation related to Kafka #53

Closed devrck closed 5 years ago

devrck commented 5 years ago

I searched some time to see how I can set a custom key and partition using symfony/messenger and maybe you consider it useful.

Steveb-p commented 5 years ago

~You probably forgot to close your code sample :)~ nvm... :D

I'd say it looks good, but specifying a particular topic partition might not be a good idea. High level consumers expect to be assigned partitions automatically. Therefore while the option is there, I'm not sure anyone should be encouraged to use it, unless you're doing something really specific.

Otherwise :+1:

devrck commented 5 years ago

@Steveb-p I agree, I wanted to highlight some options there, but I can also add a comment that this configuration option is advanced and you should be careful with it.

cluster28 commented 1 year ago

~You probably forgot to close your code sample :)~ nvm... :D

I'd say it looks good, but specifying a particular topic partition might not be a good idea. High level consumers expect to be assigned partitions automatically. Therefore while the option is there, I'm not sure anyone should be encouraged to use it, unless you're doing something really specific.

Otherwise +1

Hi @Steveb-p I'm very interested in been able to choose a partition because we have many topics configured in the wrong way due to our little knowledge about kafka when we started and i thing i'll be a very good workaround to consume messages in the order we want. I'm going to think how to do it and if i get something i will share it.

Thank you.