googleapis / googleapis/java-pubsublite
Synchronous Pull
- Ngôn ngữ chính
- Java
- Star
- 42
- Fork
- 27
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Based in [some comments in this PR](https://github.com/GoogleCloudPlatform/pubsub/pull/243) with @dpcollins-google, I opened this Feature request. Pub/sub provides an option to retrieve records synchronously: https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pullrequest
It isn't the recommended way but it works well in some scenarios.
Pub/Sub Lite doesn't have this feature so if you need to do polling, some buffer is needed in the middle to simulate that behavior. That already happen in the [PubSub Lite kafka library](https://github.com/googleapis/java-pubsublite-kafka) and the Apache Beam connector. It will happen again in the Source kafka connector.
To avoid to repeat the same workaround in each place, it would be nice to provide that API as part of the Java SDK. It would help also to clients moving from PubSub Lite to PubSub and viceversa.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách đọc tài liệu tham chiếu Pub/Sub PullRequest được liên kết trong issue và các triển khai Pub/Sub Lite Kafka và Apache Beam được liên kết để hiểu giải pháp workaround cho polling. Xác định Java SDK API và hành vi của API này đối với việc truy xuất đồng bộ, sau đó xác minh rằng các client có thể sử dụng API này mà không cần nhân bản một bộ đệm trung gian.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- api
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100