# MongoDB

MongoDB is a document database, which means it stores data in JSON-like documents.

In Shine we have MongoDB replica sets with authentications using docker.

### Replica set

A replica set in MongoDB is a group of [`mongod`](https://docs.mongodb.com/manual/reference/program/mongod/#bin.mongod) processes that maintain the same data set. Replica sets provide redundancy and [high availability](https://docs.mongodb.com/manual/reference/glossary/#term-high-availability), and are the basis for all production deployments.

![MongoDB Replica Set Architecture](/files/-MB-6i4lPhmbGZfZYijZ)

## &#x20;Replica set architecture with docker <a href="#id-81a5" id="id-81a5"></a>

![Servers Distribution using Docker](/files/-MB-75aUdUEfXdQIKM5f)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://shine-docs.chainflux.com/technology/mongodb.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
