Skip to content

Conversation

@olavloite
Copy link
Contributor

The Spanner client library now includes a lazy initializer for Spanner instances that can be used with Google Cloud Functions and other libraries that want to create an instance the first time one is needed and reuse this instance for subsequent requests.

Fixes #2862

The Spanner client library now includes a lazy initializer for Spanner instances
that can be used with Google Cloud Functions and other libraries that want to
create an instance the first time one is needed and reuse this instance for
subsequent requests.

Fixes GoogleCloudPlatform#2862
@olavloite olavloite requested review from a team and thiagotnunes November 8, 2020 10:21
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 8, 2020
@olavloite
Copy link
Contributor Author

cc @saturnism

Copy link
Contributor

@thiagotnunes thiagotnunes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@saturnism
Copy link
Contributor

thanks! /cc @ace-n

Copy link
Contributor

@ace-n ace-n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like how much cleaner this looks 👍

(I don't believe I own the spanner GCF samples though, since they're not "strictly for GCF".)

@lesv lesv merged commit 71b0525 into GoogleCloudPlatform:master Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Functions - Java Spanner example uses DCL

6 participants