You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beam.apache.org by Sampat P <ma...@gmail.com> on 2022/02/03 21:27:07 UTC

Google Healthcare API Java SDK: HTTP Client Retry

Hello,

Did anyone work on HTTP Retry Client in the HealthCareAPI client.

https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/healthcare/FhirIO.java#L587

Is it possible to add a param to the initClient and expose it as an API so
the dataflow pipeline can pass a boolean if a retry is needed?

https://github.com/apache/beam/blob/6814a06ac3d7f4f4a3e84a72bb5fae6d63a3b71a/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/healthcare/HttpHealthcareApiClient.java#L732

Execute Bundle right now only take an input of FHIR Store name:
https://github.com/apache/beam/blob/6814a06ac3d7f4f4a3e84a72bb5fae6d63a3b71a/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/healthcare/FhirIO.java#L904

We need an option to send a retry flag so the HTTP client could retry
failed REST API calls.

Please let me know if this was tried before or if you need further
discussion?

Please invite me to slack channel mailingsam@gmail.com so we could discuss
in slack.

Thanks,
Sampat.

Re: Google Healthcare API Java SDK: HTTP Client Retry

Posted by Ahmet Altay <al...@google.com>.
+Frank Yang <xi...@google.com> for the HealthCareAPI question.

On Thu, Feb 3, 2022 at 1:47 PM Sampat P <ma...@gmail.com> wrote:

> Hello,
>
> Did anyone work on HTTP Retry Client in the HealthCareAPI client.
>
>
> https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/healthcare/FhirIO.java#L587
>
> Is it possible to add a param to the initClient and expose it as an API so
> the dataflow pipeline can pass a boolean if a retry is needed?
>
>
> https://github.com/apache/beam/blob/6814a06ac3d7f4f4a3e84a72bb5fae6d63a3b71a/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/healthcare/HttpHealthcareApiClient.java#L732
>
> Execute Bundle right now only take an input of FHIR Store name:
>
> https://github.com/apache/beam/blob/6814a06ac3d7f4f4a3e84a72bb5fae6d63a3b71a/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/healthcare/FhirIO.java#L904
>
> We need an option to send a retry flag so the HTTP client could retry
> failed REST API calls.
>
> Please let me know if this was tried before or if you need further
> discussion?
>
> Please invite me to slack channel mailingsam@gmail.com so we could
> discuss in slack.
>

I sent you an invite.


>
> Thanks,
> Sampat.
>