Meteor newbie. I’ve been searching and reading for an answer, and either I’m not using the right search terms or in my newbieness I’m not realizing a solution in what I’ve read, so sorry in advance if I’ve overlooked something.
I’m coming from Ruby/Rails/MySQL and considering Meteor for an application (conceptual at the moment) that in part involves reviewing scanned images (and having the user confirm that the images are clear, appropriate, and ready for the next step). However, an image should only be reviewed one time (since we pay users by the image it would be wasteful to pay more than one person for the same image). So initially the database would have all the image records flagged as “not reviewed”. A reviewer would then click a link that would return an image (or image ID) for review – but the image would be picked by the system (server side?) automatically, not from a list or something by the user. I’m not sure via publish/subscribe how to make sure only one reviewer gets assigned the image. From what I read, I don’t think I want to publish the whole collection of unreviewed images (this could be 100K or more) and then have each client “pick” an unreviewed image. Seems like a race condition will ensue among other issues. So is there a way to click a button and have the server side pick one unreviewed image, flag it somehow to prevent another user from getting the same image, and then return just that image/document_id to the user?
Thanks in advance,