@ydbjs/topic
Version:
YDB Topics client for publish-subscribe messaging. Provides at-least-once delivery, exactly-once publishing, FIFO guarantees, and scalable message processing for unstructured data.
12 lines • 663 B
TypeScript
import { Driver } from '@ydbjs/core';
import { type TopicReader, type TopicReaderOptions, type TopicTxReader } from './reader/index.js';
import type { TX } from './tx.js';
import { type TopicTxWriter, type TopicWriter, type TopicWriterOptions } from './writer/index.js';
export interface TopicClient {
createReader(options: TopicReaderOptions): TopicReader;
createTxReader(tx: TX, options: TopicReaderOptions): TopicTxReader;
createWriter(options: TopicWriterOptions): TopicWriter;
createTxWriter(tx: TX, options: TopicWriterOptions): TopicTxWriter;
}
export declare function topic(driver: Driver): TopicClient;
//# sourceMappingURL=index.d.ts.map