-
Notifications
You must be signed in to change notification settings - Fork 543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Node.js topic documentation #10268
base: main
Are you sure you want to change the base?
Conversation
❌ Documentation buildRevision build failed Build logsErrors (5)❌ /ru/reference/ydb-sdk/topic.md: 126: MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1] ❌ /ru/reference/ydb-sdk/topic.md: 1334: MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1] ❌ /ru/reference/ydb-sdk/topic.md: 1359: MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1] ❌ /ru/reference/ydb-sdk/topic.md: 299: MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1] ❌ /ru/reference/ydb-sdk/topic.md: 537: MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1] |
⚪ Test history | Ya make output | Test bloat
🟢 |
⚪ Test history | Ya make output | Test bloat
🟢 |
✅ Documentation buildRevision built successfully |
⚪ Test history | Ya make output | Test bloat
🟢 |
✅ Documentation buildRevision built successfully |
⚪ Test history | Ya make output | Test bloat
🟢 |
В этом примере используется вспомогательный метод `getCredentialsFromEnv()`, получающий токен из переменных окружения. | ||
Например, `YDB_ACCESS_TOKEN_CREDENTIALS`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не понятно что за «например» — как-будто имя переменных никак не настраивается. Надо более конкретно написать что откуда он берёт.
Для создания читателя надо указать, из каких топиков (`topicsReadSettings`), и название консьюмера (`topicsReadSettings`), которое | ||
должно быть указано при создании топиков. | ||
|
||
А так же максимальный размер сообщений которые могут одновременно находится в очереди на обработку на клиенте (`receiveBufferSizeInBytes`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
слишком много всего надо указывать, видимо нужно список из этого сделать
@@ -1208,6 +1425,22 @@ | |||
.build(); | |||
``` | |||
|
|||
- Node.js | |||
|
|||
Полный список параметров смотри [в коде SDK](https://github-link.vercel.app/api?ghUrl=https://github.com/ydb-platform/ydb-nodejs-sdk/blob/main/src/topic/topic-client.ts&q=type%20ICreateReaderArgs). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
вводных слов не хватает
@@ -1242,6 +1475,17 @@ | |||
|
|||
SDK получает данные с сервера партиями и буферизирует их. В зависимости от задач клиентский код может читать сообщения из буфера по одному или пакетами. | |||
|
|||
- Node.js | |||
|
|||
SDK получает данные с сервера партиями и буферизирует их. В зависимости от задач клиентский код может читать сообщения из буфера по одному или пакетами. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
копипаста не самой удачной фразы из соседнего SDK — терминологически запутанно выглядит
@@ -1292,6 +1536,17 @@ | |||
|
|||
В асинхронном клиенте нет возможности читать сообщения по одному. | |||
|
|||
- Node.js | |||
|
|||
Чтобы читать сообщения без подтверждения обработки, по одному, используйте следующий код: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Чтобы читать сообщения без подтверждения обработки, по одному, используйте следующий код: | |
Чтобы читать сообщения без подтверждения обработки, по одному, используйте следующий код: |
Co-authored-by: Ivan Blinkov <[email protected]>
Co-authored-by: Ivan Blinkov <[email protected]>
Co-authored-by: Ivan Blinkov <[email protected]>
Co-authored-by: Ivan Blinkov <[email protected]>
⚪ Test history | Ya make output | Test bloat
🟢 |
⚪ Test history | Ya make output | Test bloat
🟢 |
✅ Documentation buildRevision built successfully |
Changelog entry
Node.js topics documentation has been added. Initial version. Only in Russian for now
Changelog category
Additional information
...