A high-performance API built with Rust, leveraging Tokio's async runtime to efficiently upload multiple files concurrently into MongoDB. This API processes files in parallel, ensuring fast and scalable data ingestion
- Concurrent file ingestion using Tokio
- Asynchronous MongoDB integration
- Fast and scalable JSON processing
- Error handling and logging
- Clone the repository:
git clone https://github.com/blixygetir/async-mongo-loader.git cd async-mongo-loader
- Enter the connection string of your MongoDB database in the .env file.
- Install the dependencies. cargo build
- Run the API cargo run <database_name> <collection_name>
- Install the latest Rust version (currently
rustc 1.76.0
or later):curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Install MongoDB locally or use MongoDB Atlas (Sign up).
- Ensure MongoDB is running and set the MONGO_URI in .env