Getting started with MongoDB and Redis in Rust

This page summarizes the projects mentioned and recommended in the original post on dev.to

InfluxDB - Purpose built for real-time analytics at any scale.
InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • exploring-rust-ecosystem

    A set of examples that demonstrate how to create a backend application using Rust ecosystem.

    The project is implemented with MongoDB Rust driver and redis-rs crate.

  • InfluxDB

    Purpose built for real-time analytics at any scale. InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.

    InfluxDB logo
  • mongo-rust-driver

    The official MongoDB Rust Driver

    The project is implemented with MongoDB Rust driver and redis-rs crate.

  • redis-rs

    Redis library for rust

    The project is implemented with MongoDB Rust driver and redis-rs crate.

  • MongoDB

    The MongoDB Database

    This guide will show you how to create a Rust web backend that uses MongoDB, a document-based database, to store data and Redis for caching, rate limiting, and notifications. For visibility purposes, created demo application will also be a web application that exposes REST API. Finally, the following architecture will be obtained:

  • rust-embed

    Rust Macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.

    But then it turned out that the images can’t be read from the database due to the lack of GridFS support in MongoDB Rust Driver (open ticket). So for simplicity purposes, I decided to use rust_embed crate which allows including images in the application binary at compile time (at the development time they are loaded from a file system). (It is also possible to store images separately from the application; images folder should be mounted as a volume in the Docker Compose service definition)

  • Redis

    Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs, Bitmaps.

    This guide will show you how to create a Rust web backend that uses MongoDB, a document-based database, to store data and Redis for caching, rate limiting, and notifications. For visibility purposes, created demo application will also be a web application that exposes REST API. Finally, the following architecture will be obtained:

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Redis vs MongoDB: Which Database Suits Your Needs?

    2 projects | /r/u_webdev20 | 7 Jun 2023
  • NoSQL Databases vs Graph Databases: Which one should you use?

    2 projects | dev.to | 14 Apr 2023
  • System Design: URL Shortener

    3 projects | dev.to | 20 Sep 2022
  • What is the best key-value store for Rust 2021

    6 projects | /r/rust | 11 Jan 2022
  • Another SQL cheat sheet

    2 projects | dev.to | 3 Sep 2021

Did you konow that Rust is
the 5th most popular programming language
based on number of metions?