Mongodb--read&write operation

Source: Internet
Author: User
Tags mongodb

In order to follow up the processing flow of the balance&split of the chunk block separately, this is not covered here. But do not misunderstand that there is no association between the two.


read&write MongoDB give me the feeling is that a bowel access to the ground, all the processing is seemingly a bit of a single thread meaning. The schematic diagram is as follows:

processing Process:        After processing Ⅰ, cluster startup, config server acquires the metadata of the entire cluster, preparing for subsequent addressing. #数据插入, UPDATE, delete the occasion, metadata will update, chunk data update before, will update the latest data to config server.
Request Processing ①, client send Read&write request ②, send request via driver to Router server ③, router Server resolves user's request ④, according to Config The metadata stored in the server, addressing shard corresponding chunk blocks, and the location of the target data ⑤, sending Shard to all associations Read&write request ⑥, individual shard feedback read&write result information ⑦, Query results are distributed across multiple Shard, router server merges query data
⑧, through driver feedback results information
➈, the client displays the latest results


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.