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
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?
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.