googleapis / googleapis/java-pubsublite
Synchronous Pull
- Langage dominant
- Java
- Étoiles
- 42
- Forks
- 27
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par lire la référence Pub/Sub PullRequest liée dans l’issue ainsi que les implémentations Pub/Sub Lite Kafka et Apache Beam liées afin de comprendre le contournement du polling. Définissez l’API Java SDK et son comportement pour la récupération synchrone, puis vérifiez que les clients peuvent l’utiliser sans dupliquer un tampon intermédiaire.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- api
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100