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.

Great software starts with infrastructure you can trust.

Ready to scale your project?

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