Replies: 1 comment
-
Hi @shashi812, Little example where the application build a Global Table and iterate the store directly from the KafkaStream instance : var config = new StreamConfig<StringSerDes, StringSerDes>
{
ApplicationId = $"test-app",
BootstrapServers = "localhost:9092"
};
var globalTable = builder.GlobalTable("topic",
RocksDb.As<string, string>("global-store"));
var stream = new KafkaStream(builder.Build(), config);
var globalStore = stream.Store(StoreQueryParameters.FromNameAndType(
"global-store",
QueryableStoreTypes.KeyValueStore<string, string>()));
// get all the items from the store
globalStore.All(); Best regards, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have got a requirement to expose the results of a global table to outside world via an API endpoint. Does anyone have any idea how to do this?
Beta Was this translation helpful? Give feedback.
All reactions