Closed wtrocki closed 3 years ago
The docs say this: You can configure start offset for new consumers in settings (earliest, latest).
How do I go about view prior offsets in the tool? I can only view new messages that come after I start the consumer.
@mblandgithub I have implemented some POC using debezium (Kafka connect) for publishing and Node.js subscription resolvers for consuming. I haven't used GraphQL PubSub interface because it has some obvious problems.
Debezium will publish messages in order (partitioning is based on table/id)
POC does couple things
This is complex so I'm trying to see if there is a way to make some simple sample app and blog post but not convinced yet that this is the most elegant solution (it is definitely opiniated one
I agree this would be nice. We can add an option to the consumers in the explorer to seek to a particular offset.
This might also be the opportunity to start documenting a bit on revamping the consumers. I've been wanting to redo the consumer part a bit for a while to make it a bit more flexible instead of just letting a single consumer group be registered. Similar to producers being created with a kafka file, i've been thinking of a similar approach to consumers. Something along the lines of this (needs some more thoughts but should show the gist of it):
CONSUMER test
topic: topic-a
partition: <number> (optional)
from: [earliest | latest | <offset>]
to: [latest | <offset>]
@jlandersen we discuss about this idea with kafka file with @fbricon but we wonder how to manage menu Start consumer from the treeview and kafka files (ex: menu from treeview item must introspect all kafka files in workspace to know which start consumer exists?)
That's why we think to manage those start consumer with a webwiew like I tried to explain in https://github.com/jlandersen/vscode-kafka/issues/88 liek Conduktor does:
Because there is not only offset confuguration, there is format configuration (to envoid encoding problem), etc
Perhaps we could manage start consumer with both solution (kafka file and webview), but I though next week to start to manage "start consumer) with webview. Are you OK with that?
@jlandersen we discuss about this idea with kafka file with @fbricon but we wonder how to manage menu Start consumer from the treeview and kafka files (ex: menu from treeview item must introspect all kafka files in workspace to know which start consumer exists?)
That's why we think to manage those start consumer with a webwiew like I tried to explain in #88 liek Conduktor does:
Because there is not only offset confuguration, there is format configuration (to envoid encoding problem), etc
Perhaps we could manage start consumer with both solution (kafka file and webview), but I though next week to start to manage "start consumer) with webview. Are you OK with that?
I wouldn't consider a consumer from a file the same as "Start consumer" from the menu, but rather they are two separate approaches to start / register a consumer.
I'm definitely open to having a UI for starting a consumer as well, but functionally I'd expect it to work exactly the same as from whatever format we use in files (that is, any field you'd have in the UI would map to a property in the file format).
'm definitely open to having a UI for starting a consumer as well, but functionally I'd expect it to work exactly the same as from whatever format we use in files (that is, any field you'd have in the UI would map to a property in the file format).
Ok so I will give up webview UI stuff for the moment and I will start to work on kafka files with CONSUMER. @fbricon is it OK for you?
I'm working on start/stop CONSUMER with kafka file. See the demo https://github.com/jlandersen/vscode-kafka/pull/98#issuecomment-770436966
Fixed with https://github.com/jlandersen/vscode-kafka/pull/98 by using from
into CONSUMER kafka file.
See documentation https://github.com/jlandersen/vscode-kafka/blob/master/docs/Consuming.md#kafka-file for more information.
To reply message/debug someone might need to get messages from begging or specific offset