Two users accessing an entity at the same time

Not applicable

This may be a newbie question, but what happens if 2 users are updating an entity at the same time, would the system crash or maybe hold a queue until one of the users is finished updating, or would the system just not update the entity and ignore both requests?

0 6 191
6 REPLIES 6

@K Smith , Are you talking about Apigee BaaS ?

Yes, from the tags on the question, it looks like the question is about Baas (usergrid).

And @K Smith , unfortunately I don't know the answer to that question.

Your question is really around isolation levels for Usergrid updates.

Maybe @Michael Russo knows the answer?

Yes

BaaS provides eventual consistency.

Competing updates to an entity are not guaranteed to be executed in any predictable order.

Ok so basically, no matter how many users write to a specific entity a queue will be held and each request will eventually be completed?

For example, if an entity is carrying a list of comments or likes and two users post a comment at the same time, no matter what both updates will go through? Even if say a third user is posting a GET request on the same entity?