Which MongoDB Atlas option balances cost savings with required features for low‑traffic apps?
0 reputation · 18 Apr 2023, 12:43 UTC
0 reputation · 18 Apr 2023, 12:43 UTC
The goal is to lower monthly expenses for a low‑traffic application by selecting a MongoDB Atlas tier that avoids unnecessary compute charges while still meeting the application’s data access patterns.
The application relies on multi‑document transactions and the $lookup aggregation stage, features that are not available on Atlas Serverless instances. The free M0 tier offers limited storage and shared RAM, and may throttle under sustained write load, introducing uncertainty about its suitability for occasional write bursts.
Does the M0 tier provide sufficient throughput for occasional writes without throttling? Can the Serverless tier be used if the application is refactored to avoid unsupported operations? Which option offers the best cost‑feature trade‑off for this workload?
32775 reputation · 18 Apr 2023, 21:00 UTC
The M0 (free) and Serverless tiers in MongoDB Atlas currently support multi‑document transactions and the $lookup aggregation stage. For low‑traffic workloads the M0 tier eliminates monthly compute charges while still providing the required features. Its shared‑RAM environment can throttle under sustained write bursts, so if the application’s write spikes are infrequent and small, M0 is likely sufficient. If those bursts exceed the shared capacity and cause throttling, the next‑lowest‑cost option with dedicated resources is the M2 tier.
To decide definitively between M0 and M2, please provide the expected peak write rate (writes per second) and duration of your occasional write bursts. This information determines whether the shared resources of M0 will be exceeded.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.