Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable preferRest by default for functions #6146

Closed
wants to merge 27 commits into from

Conversation

blidd-google
Copy link
Contributor

The Firestore team has added the option to use HTTP/1.1 REST transport instead of gRPC. Using REST significantly reduces cold start times by eliminating the need to load gRPC libraries with the Firestore client. With googleapis/nodejs-firestore#1848, functions developers can now enable the preferRest option for the Firestore SDK by setting an environment variable FIRESTORE_PREFER_REST in the GCF runtime environment. This PR enables preferRest by default for all functions. Note: methods that require gRPC will still cause the Firestore client to load dependent gRPC libraries.

@codecov-commenter
Copy link

codecov-commenter commented Jul 18, 2023

Codecov Report

Patch coverage: 59.37% and project coverage change: +0.01 🎉

Comparison is base (501c056) 54.60% compared to head (a784137) 54.62%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6146      +/-   ##
==========================================
+ Coverage   54.60%   54.62%   +0.01%     
==========================================
  Files         346      346              
  Lines       23621    23648      +27     
  Branches     4859     4861       +2     
==========================================
+ Hits        12899    12918      +19     
- Misses       9542     9548       +6     
- Partials     1180     1182       +2     
Impacted Files Coverage Δ
src/functions/env.ts 95.90% <ø> (ø)
src/gcp/frameworks.ts 43.75% <40.00%> (-6.25%) ⬇️
src/init/features/frameworks/index.ts 64.70% <62.96%> (+7.56%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@blidd-google blidd-google deleted the bl-enable-preferrest branch July 18, 2023 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants