A tool for real-time data synchronization between mongodb and ElasticSearch Based on netcore (ipv2es ),

Source: Internet
Author: User
Tags mongodb collection mongodb driver

A tool for real-time data synchronization between mongodb and ElasticSearch Based on netcore (ipv2es ),

Tools for real-time data synchronization between mongodb and ElasticSearch Based on netcore

One-to-one, one-to-many, multiple-to-one, and many-to-many data transmission modes are supported.

  • One-to-one-A mongodb collection corresponds to data synchronization between indexes of an elasticsearch instance.
  • One-to-multiple-Data synchronization between indexes of multiple elasticsearch instances corresponding to a collection of mongodb instances
  • Many-to-one-Data synchronization between indexes of an elasticsearch instance corresponding to collection of multiple mongodb instances
  • Many-to-many-Data synchronization between indexes of multiple elasticsearch instances corresponding to collections of multiple mongodb instances
Environment version
elasticsearch:v6.1.2mongodb: v3.4.9netcore: v2.1.101
What is this tool?

Ipv2es is used to maintain real-time data synchronization between your mongoDB collections and your elasticsearch index. it uses mongo oplog to monitor whether your mongdb data has changed. Whether it is added, deleted, modified, and queried, it will be promptly reflected on your elasticsearch index. before using this tool, you must ensure that your mongoDB is in line with the replica structure. If not, set it correctly before using this tool.

How to Use

Download from GitHub

cd srcdotnet publish --framework netcoreapp2.0 -o ./published
How to start
dotnet Mongo2Es.dll --port {port for web manage} --mongo {mongourl for config}
Displayed result
  • Page Management

  • Execution Process


  • Data in mongodb


  • Data in elasticsearch

License

The MIT License (MIT). Please see LICENSE for more information.

Reference & Study
  • Mongo-connector
  • Mongo-es
  • Node-mongodb-es-connector
  • MongoDB Administration Commands> listCollections
  • MongoDB Driver Admin Quick Tour
  • MongoDB Driver Using a Tailable Cursor
  • Elasticsearch Reference
  • Elasticsearch. Net-Low level client
  • NLog. MongoDB. NetCore

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.