loopbackio / loopbackio/loopback4-example-kafka

some observations / enhancement request

オープン
#3 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
TypeScript
スター
11
フォーク
4
PR マージ指標
30日以内にマージされた PR はありません

説明

@raymondfeng

Thanks for sharing this example.

I tried using your example code and have a few observations that I would like to share with you.

1. I think we should make "offset" a user input.
2. For the case when input "limit" is greater than the number of messages within the selected topic, the explorer is stuck in "Loading" state. I can see that it gets the messages from the backend, but since the messages are less than the requested limit, it just sits there for a timeout to occur and eventually error's out.

Please let me know your thoughts.

Based on your feedback, I am looking forward to add a few things to this example and will be happy to share an updated version with the community.

BTW I am using the latest versions of the following packages.
"@loopback/authentication": "^5.0.0",
"@loopback/authentication-jwt": "^0.5.0",
"@loopback/authorization": "^0.6.4",
"@loopback/boot": "^2.4.1",
"@loopback/core": "^2.9.3",
"@loopback/extension-health": "^0.4.11",
"@loopback/extension-metrics": "^0.3.11",
"@loopback/repository": "^2.11.0",
"@loopback/rest": "^6.0.0",
"@loopback/rest-crud": "^0.8.11",
"@loopback/rest-explorer": "^2.2.8",
"@loopback/service-proxy": "^2.3.6",
"kafka-node": "^5.0.0",

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

サンプルコードから始め、選択したトピックについて offset と limit が explorer を介して backend に渡される流れを追跡します。要求した limit より少ないメッセージが返された場合の動作を確認し、offset がユーザー入力として公開され、タイムアウトを待たずに読み込みが完了することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
kafka, typescript
領域
backend, distributed-systems
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。