You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/02/08 14:10:00 UTC

[jira] [Work logged] (BEAM-5806) Allow to change the PubsubClientFactory when using PubsubIO

     [ https://issues.apache.org/jira/browse/BEAM-5806?focusedWorklogId=196230&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-196230 ]

ASF GitHub Bot logged work on BEAM-5806:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 08/Feb/19 14:09
            Start Date: 08/Feb/19 14:09
    Worklog Time Spent: 10m 
      Work Description: stale[bot] commented on issue #6769: WIP: [BEAM-5806] Update PubsubIO to be able to change the PubsubClientFactory
URL: https://github.com/apache/beam/pull/6769#issuecomment-461814061
 
 
   This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@beam.apache.org list. Thank you for your contributions.
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 196230)
            Time Spent: 1h 50m  (was: 1h 40m)
    Remaining Estimate: 22h 10m  (was: 22h 20m)

> Allow to change the PubsubClientFactory when using PubsubIO
> -----------------------------------------------------------
>
>                 Key: BEAM-5806
>                 URL: https://issues.apache.org/jira/browse/BEAM-5806
>             Project: Beam
>          Issue Type: New Feature
>          Components: io-java-gcp
>            Reporter: Logan HAUSPIE
>            Priority: Minor
>   Original Estimate: 24h
>          Time Spent: 1h 50m
>  Remaining Estimate: 22h 10m
>
> By using the PubsubIO to read from or write to Pub/Sub we are obliged to use the PubsubJsonClient to interact with the Pub/Sub API.
> This PubsubJsonClient encode the message in base 64 and increase the size of this one by 30% and there is no way to change the PubsubClient used by PubsubIO.
>  
> What I suggest is to allow developper to change the PubsubClientFactory by specifying it at the definition-time like the following:
> {{^PubsubIO.Read<String> read = PubsubIO.readStrings()
>           .fromTopic(StaticValueProvider.of(topic))^}}
>           .withTimestampAttribute("myTimestamp")^}}
>           .withIdAttribute("myId")^}}
>           *.withClientFactory(PubsubGrpcClient.FACTORY)*;^}}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)