kafka-ui icon indicating copy to clipboard operation
kafka-ui copied to clipboard

Messages produce: Support TopicRecordNameStrategy & RecordNameStrategy

Open iliax opened this issue 3 years ago • 8 comments

Is your proposal related to a problem?

Currently when producing message only TopicNameStrategy used to search appropriate subjects. If subject is not found by this strategy message is written as raw text. If user uses TopicRecordNameStrategy or RecordNameStrategy text msg will be written which can break downstream consumption.

Describe the solution you'd like

  • on "Produce Message" page we should show which schema will be used for serialization
  • if no schema found by TopicNameStrategy for topic we should be able to specify schema explicitly - there should be a dropdown with all subject names
  • if schema not found and not specified then message will be treated as a text

Implementation

Backend:

  • add keySubject and valueSubject fields to produce endpoint

Frontend:

  • TODO: discuss

-- More details: #3244

iliax avatar Jan 08 '22 08:01 iliax

relates to ISSUE: https://github.com/provectus/kafka-ui/issues/1356

iliax avatar Jan 08 '22 08:01 iliax

@Haarolean I suggest to add this to next release worklog, since this already affected some users in a bad way

iliax avatar Jan 08 '22 08:01 iliax

#2125

Haarolean avatar Sep 20 '22 12:09 Haarolean

+1 This issue is only for producing a message with a different strategy but in the same time it will be also coherent to have it for the consumption (hense the deserialization).

Shawcs avatar Jan 10 '23 12:01 Shawcs

very important for us. thanks.

vsevel avatar Jan 11 '23 10:01 vsevel

I would love to contribute to implementing this feature. This is an important feature we're looking forward to.

cdia8890 avatar Nov 27 '23 04:11 cdia8890