How do i add data to MOngo Db synchronously ? Is it a good idea to use asynchronously method to add user data in server ?
I have user registration form, when user click on create button it should add user data to Mongo db collection. But in Mongo db site they have explained asynchronous methods to insert data using c# driver. But i want to insert it synchronously. 1. User click on create button 2. Insert data to Mongo DB 3. Show success message to user.
here in step 2, if it is asynchronous, it will go to step3 without completing step 2 correct ? So user will get success message before completing the request. That is not a good idea right ?
Is it a good logic that adding user info using asynchronous method?
Why c# mongo db drivers providing only asynchronous option to insert\find data?