Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
クライアントがオフラインになったとします。その間、次のコードが実行されます。
Messages.remove(oldMessage._id) Messages.insert(newMessage)
クライアントがオンラインにremoveなると、最初に実行され、次に実行されることが保証されinsertますか?
remove
insert
言い換えれば、これらのメッセージの 1 つだけが常にデータベースに存在することが保証されていますか?
最初に削除が実行され、次に挿入が実行されます。Meteor はすべての DDP メッセージをキューに入れ、再接続時に順番に実行します。