MongoDB

MongoDB Hosting ready in seconds

A document database with a flexible schema, aggregations and TTL indexes, on an isolated instance about 1 ms from your applications. You create, size and restore it in the dashboard.

From R$44.99/mo

~1 ms

Latency to your apps

<10 s

For the database to be ready

v8

MongoDB version

TLS

Encrypted connection

MongoDB features, no changes needed

Model the data the way your application thinks and use the official driver or your usual ODM. What is a MongoDB server feature works here.

  • Flexible schema

    BSON documents with nested fields and arrays. Add fields without migrating a table.

  • Validation with $jsonSchema

    When the schema needs rules, validate types and required fields in the database itself.

  • Aggregation pipeline

    Filter, group and join collections with $lookup on the server, without pulling everything into the application.

  • Compound and text indexes

    Compound, multikey and text indexes for word search, with explain to check the plan.

  • TTL indexes

    Sessions, tokens and logs expire on their own, no cron.

  • Geospatial queries

    GeoJSON objects and 2dsphere indexes to search by radius, polygon or proximity.

  • Time series collections

    Compact storage for timestamped metrics and events, grouped automatically.

  • Atomic writes per document

    Every write to a document is atomic, including nested fields and arrays.

Connect with the driver you already use

The dashboard shows the instance's connection URL. Store it in your application's environment variables and use any MongoDB driver or ORM.

square-cloud-db-<id>.squareweb.app
mongodb://default:<password>@square-cloud-db-<id>.squareweb.app:<port>
Works withMongoosePrismaPyMongoMotorSpring Datamgo
  • Coming from another provider? Export with mongodump and import with mongorestore pointed at the new URL.
  • Instance certificates (.pem, .crt and .key) available to download in the dashboard.

What comes with every database

Every instance runs in the same datacenter as your applications, with TLS, a daily snapshot and metrics in the dashboard. You create, size and restore it yourself.

  • Close to your applications

    Your applications connect through the instance address, with TLS, in the same New York datacenter. Average latency stays around 1 ms.

    • About 1 ms average latency from your applications
    • Enterprise NVMe disks
    • Access from outside Square Cloud with host, port and password
    • RAM adjustable in the dashboard
  • Daily snapshot included

    Every database gets an automatic snapshot every 24 hours, on any plan with databases. Before a risky change, take a manual one and restore it in the dashboard if something goes wrong.

    • Automatic daily: the latest kept up to 30 days, older ones 7
    • Manual snapshots kept up to 30 days
    • Restore and download in the dashboard
  • Isolated and encrypted

    Each database runs in its own container, with dedicated vCPU calculated from the allocated RAM and the plan. The connection uses TLS with the instance's own certificate, which you download and renew whenever you want.

    • TLS certificate per instance (.pem, .crt and .key)
    • Password and certificate renewable in the dashboard
    • CPU, memory and network metrics
    • Tier 3 partner datacenter with ISO 27001 and SOC 2 Type II

Combine with other services

Everything in the same dashboard, on the same infrastructure and the same invoice.

A plan for every stage of your project

Start small and scale when you need to, with no loyalty contracts.

Databases are available from the Standard plan.

Compare all plans

4.9 out of 5 · 402 reviews on Google + TrustpilotTrustpilot

Hosted in a partner datacenter with certifications
Tier 3ISO 27001SOC 2 Type IIAlways-On DDoS Protection
Explore our infrastructure

Frequently asked questions about MongoDB Hosting

ACID transactions, drivers, backups and when to choose MongoDB Hosting.

Does MongoDB Hosting give ACID guarantees?

Yes, at the document level: every write to a single document is atomic and durable, nested fields included. Transactions that span several documents need a replica set, which is not part of Hosting. Model the things that must change together into the same document.

Which MongoDB version is provisioned?

The current stable LTS release, with automatic patch updates. The major version is shown in the dashboard when provisioning, and the exact version in use is listed in the databases documentation.

Can I use Mongoose, Prisma or the official driver?

Yes. The instance exposes the standard mongodb:// connection string, so any driver (Mongoose, Prisma, Motor, PyMongo, official drivers for Java/C#/Go/Rust) connects without adaptation.

When is MongoDB Hosting better than PostgreSQL Hosting?

When you have schemaless data (logs, events, variable profiles, chat history) or when you need fast read/write of nested JSON documents.

Are aggregation pipelines and text search supported?

The aggregation pipeline works normally (native feature). Atlas Search is Atlas-proprietary, but you can use text indexes or run a separate Elasticsearch.

How do I back up or export from MongoDB Hosting?

Every MongoDB Hosting instance gets automatic daily snapshots, with the most recent one kept for up to 30 days and older ones for 7. For a one-off export, use mongodump with your instance's connection string.

Ready to scale your project?

Join the 500,000+ developers who have used Square Cloud to host their projects.

  • Predictable pricing
  • No billing surprises
  • Deploy in seconds
  • High availability
  • Scale with stability
  • Automatic restart
  • SSL and security included
  • Isolated containers