Hi @NeNaD,
Atlas M30+ dedicated clusters have a Global Clusters feature which uses Zone Sharding to support location-aware read and write operations, This is similar to the examples described in Segmenting Data by Location, but Atlas has UI/API to support more straightforward configuration.
If you prefer a video overview, this walkthrough from MongoDB World 2018 may be of interest:
There have been many improvements to Atlas in the ~4 years since this video was recorded (including additional provider regions and Multi-Cloud Clusters) so I recommend reviewing current Atlas documentation if you want to catch up on the latest features. However, this MongoDB World session should provide a good introduction to Atlas Global Clusters.
If you have an Atlas replica set deployment, members can be hosted in different regions if your main concern is read latency. However, each replica set has a single primary so you’ll have to choose a primary region for writes that will cater to the majority of your application users.
You will need a sharded cluster (M30+ on Atlas) to support multi-region writes. Each shard is backed by a replica set, so shard primaries can be distributed for global writes with local secondaries from other shards to support reading cross-region data. The zone sharding feature used by Global Clusters allows you to control location-based zone/shard affinity for writing data.
Regards,
Stennie