Google-cloud-php: [Spanner] Making the session warmup parallel

Created on 9 Apr 2018  路  2Comments  路  Source: googleapis/google-cloud-php

Now it will take time linear to the number of session requested. It is better to request the sessions in parallel so that it's significant faster especially you are requesting multiple sessions.

Originally discussed in #989

spanner feature request

Most helpful comment

We've recently implemented promises to enable asynchronous network requests in GAX. The next step is to expose methods that return these promises in the GAPICs, then we will be able to update our synchronous calls in the session pool to use the new tooling :). If we'd like get on this sooner than that, it would be possible to short circuit the GAPICs as we've done with session deletes.

All 2 comments

We've recently implemented promises to enable asynchronous network requests in GAX. The next step is to expose methods that return these promises in the GAPICs, then we will be able to update our synchronous calls in the session pool to use the new tooling :). If we'd like get on this sooner than that, it would be possible to short circuit the GAPICs as we've done with session deletes.

We need to warm up ~16 sessions in production and would like to see this feature implemented.
Are there plans to implement this anytime soon?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mjniuz picture mjniuz  路  6Comments

castaneai picture castaneai  路  7Comments

LoekvanKooten picture LoekvanKooten  路  6Comments

tmatsuo picture tmatsuo  路  4Comments

fschirl picture fschirl  路  4Comments