Is env.get a request to NoteCARD or NoteHUB?

Hi all,
Just looking for some clarification here regarding the env.get request.

If I issue this request to the Notecard, I get back the latest env variables’ values. Does this come from the Notecard locally, as in it just gives the values it has from its most recent sync with Notehub? Or does this command cause the Notecard to connect and query Notehub? Does it use bandwidth and/or consumption credits?

Also, if my asking this question implies a fundamental misunderstanding of the system on my part, please let me know.

Thanks!
Scott

1 Like

Hey @scase,

Does this come from the Notecard locally, as in it just gives the values it has from its most recent sync with Notehub?

Yes

Or does this command cause the Notecard to connect and query Notehub?

No

Does it use bandwidth and/or consumption credits?

Because the request doesn’t cause any network connection, it also doesn’t use any data or consumption credits.

Let me know if that helps, but in general, how you configure your synchronization mode and inbound interval determines how often you receive environment variable updates from the network, and the env.get request just gets the most recent value that the Notecard currently knows about locally.

TJ

4 Likes

Thanks once again for your help, TJ! This is exactly the clarification I needed.

Scott

2 Likes