ah ok, so that won’t help.
This seems like a huge minefield for end users that won’t be thinking about this stuff
maybe the simple solution is to warn them to set workers to 1 if they use data stores
otherwise, especially on low volume apps the race condition will be hiding there and when it happens nobody will even know
Do you have any other suggestions for how I can do this now, without a race condition?
Even a solution without Data Stores would be better
Thanks for the feedback. It seems users assume that it’s transactional (and I understand)
especially because it’s called a key value and the name of the action is append, that kind of implies atomic action
Roughly how many invocations do you expect to receive in a given time frame?
I want to count our lead capture action, visitor to my site fills a form and it runs the action. These happen randomly, sometimes very close together. I want to know how many times the trigger was called.
Originally I looked for an API that would tell me the number of invocations.
Just wondering re: the data store limits
handfuls of times
Are you in the Basic or Advanced plan?
I’m on a legacy plan
The solution I’m thinking is write a row for every invocation. Then get the count of rows
in a data store?
Yep
yeah could do that and maybe hit our max