Closed shazron closed 4 months ago
JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-1155
Suggestions from the team:
We already have multi-region support (US and Europe) so suggestion 1 could help isolate the issue.
Thanks for the summary @shazron ! What about re-testing with direct calls to the Azure HTTP API (i.e. not using the @azure/sdk at all)?
What about re-testing with direct calls to the Azure HTTP API (i.e. not using the @azure/sdk at all)?
Good idea. That would help isolate whether there is something else in the SDK that is causing the bottleneck, not the network call itself.
Getting auth error even though I have access to app builder
Stale, and not valid anymore - v4 of this lib connects to a new State store which will have different behaviour. No changes will be made to the old state store.
See investigations under #63
Expected Behaviour
Under a cold start, a state.get will take approx less than a second.
Actual Behaviour
Under a cold start, a state.get will take approx 1800ms.
Possible issues
On a warm start, a state.get will still take approx 450ms
The
@azure/cosmos
promise that is resolved here, takes up 99.9% of the time for astate.get
call:I don't think there can be any more code optimizations possible here since it seems the bottleneck is the CosmosDB read call. The only possible solutions I can see are: