4 ms·
No, what I meant was that it is safe to keep request-scoped data in global scope without needing to worry that a concurrently running request will interfere wit
by hn_throwaway_99 8y ago
No, what I meant was that it is safe to keep request-scoped data in global scope without needing to worry that a concurrently running request will interfere with the state there. Normally in a Node server you cannot do this.
Cloud Functions will reuse instances for subsequent invocations (that's what "being warm" means), but separate instances do not share global scope.