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

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

                Author: ASF GitHub Bot
            Created on: 12/Apr/19 19:28
            Start Date: 12/Apr/19 19:28
    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-482695037
 
 
   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 [email protected] list. Thank you for your 
contributions.
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


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

            Worklog Id:     (was: 226873)
            Time Spent: 2h 10m  (was: 2h)
    Remaining Estimate: 21h 50m  (was: 22h)

> 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: 2h 10m
>  Remaining Estimate: 21h 50m
>
> 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)

Reply via email to