Skip to content

Slow getClient #824

Closed
Closed

Description

@blasco

So I want to update my device configuration from a Firebase Cloud Function.
I've created a JWT service account that allows the firebase functions to manage all the devices.
The getDevice() function takes 2 seconds before I get the client...
Is threre a way to speed this up?
Every time I want to call the function I need to wait to get this client. Is there another approach? Or is it not normal that it takes for so long?

Activity

  1. fhinkel commented on Nov 15, 2018

    @fhinkel
    Contributor

    @ace-n, can you route this to the appropriate Cloud Function person please. Thanks

  2. ace-n commented on Nov 15, 2018

    @ace-n
    Contributor

    /cc @samtstern

    Does this help?

  3. fhinkel commented on Feb 28, 2019

    @fhinkel
    Contributor

    ping @samstern, please have a look.

  4. samtstern commented on Feb 28, 2019

    @samtstern

    Sorry I don't think I am the right person, I don't know about this.

    If getClient() produces a singleton you can share you can call it outside of the cloud function body though.

  5. ace-n commented on Jun 6, 2019

    @ace-n
    Contributor

    Closing this due to a lack of activity. @j-blasco please reply here (or create another issue) if this is still a problem for you (and the suggestions above didn't help) - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions