MongoDB Atlas Data API Is Now Generally Available: Connectionless Data Access Over HTTPS
Today we’re excited to announce the general availability of the MongoDB Atlas Data API . The Data API is a serverless, secure API that brings the ease of HTTPS-based data access to the forefront of the Atlas developer’s experience. Traditionally, connecting to a database or integrating data into apps comes with a lot of operational burdens, such as provisioning infrastructure or scaling. The Data API offers a new, fully managed way to build data-centric apps and services on top of Atlas. Now Atlas developers can simply think of their data in terms of an API . Since we introduced the Data API in preview in November 2021, Atlas customers have been adopting it for a variety of use cases. For example, some customers are using it to connect to IoT environments where MongoDB drivers aren’t supported. Other customers are using the Data API as a way to quickly build a POC. Many organizations are using the Data API to integrate Atlas data with other cloud services, such as AWS Lambda, Microsoft Power Apps, or Apigee and edge-based web services such as Vercel and Cloudflare. Penny Software , a cloud-based procure-to-pay startup in EMEA, is already using the Data API in multiple parts of their application. “The Atlas Data API has been instrumental in our efforts to thin out our backend application,” CTO Mohamad Ibrahim says. "It has helped the team reach a new level of productivity." New features and functionalities with GA In addition to being production-ready, the Data API now supports new layers of configurable data permissioning and security, including: New authentication methods: We’ve added support for authentication methods, such as JWT authentication and email/password. Role-based access control: Configure rules for user roles that control read and write access via the API. IP Access List: Only allow client requests from the enabled entries in the IP access list. Custom endpoints: Define additional API routes—including the request method, the URL, and the logic—for additional configuration flexibility. Get started with the Atlas Data API If you’re ready to start building your next application with MongoDB Atlas and the Data API, getting started is easy—choose the cluster you’d like to connect to and generate an API key. That’s all it takes to set up and start sending requests to the API. Try the Data API Today
Flexible Sync Delivers Device Data to the Cloud in Real-Time
We’re excited to announce the general availability of Flexible Sync , the next iteration of Atlas Device Sync , MongoDB’s synchronization solution between the popular client-side database Realm and MongoDB Atlas. Flexible Sync introduces significant architectural enhancements to Device Sync that improve developer productivity and further reduce the complexity of managing separate data technologies when connecting mobile and embedded devices to the cloud. At its core, Flexible Sync enables synchronization of only the data that’s relevant to a given user or device. For example, Wanderland, a new virtual reality social media application, needed a solution that synchronized data across devices in real time, allowing users to publish geo-located AR content and discover content created by their peers. “The new Flexible Sync feature in Atlas Device Sync elegantly solves geo-partitioning issues by allowing us to only synchronize nearby spatialized content relevant to each user,” Jonathan Thorpe, the lead VR/AR developer at Wanderland, says. Additionally, we are expanding our device platform support with the GA of our Kotlin SDK , which includes Kotlin Multiplatform support, and the preview release of our Flutter SDK . Increase developer productivity with query-based sync With Flexible Sync, we are introducing a new way of configuring sync that is more analogous to the way developers sync and code. Now, developers will be able to define synced data using language-native queries that can dynamically update based on user-defined inputs, which means that as a user updates app filters or preferences, the data being synced to the device will update efficiently and in real-time. Handle sensitive information with field-level permissions The introduction of Flexible Sync also means data synchronization can be tailored and limited based on a user’s role down to field-level granularity. This is an industry-leading feature that is especially critical for apps handling sensitive PII or PHI data, ensuring that not only is protected data not visible in the UI, but it is never on the synced device to begin with. Support write-heavy workloads with asymmetric sync We recognize that with the need for real-time visibility, there is an increasing occurrence of write-heavy workloads that require low-latency sync from embedded devices to the cloud. The new release of Flexible Sync offers full support for asymmetric sync from devices to the cloud that is optimized for write-heavy workloads and syncs directly to time-series collections on MongoDB. New language, framework, and platform support (Kotlin, Flutter, MAUI, and WatchOS) Alongside the release of Flexible Sync, we are announcing support for several new mobile frameworks and platforms: Realm Kotlin – Now GA: Prior to this release, Android developers used our Realm Java SDK within Kotlin apps. The new GA release of the Realm Kotlin SDK—that includes full Kotlin Multiplatform support—offers idiomatic, Kotlin-first APIs for developers using Kotlin in their mobile apps. Realm Flutter – Now in preview: As Flutter support is the top requested feature for Realm, we are excited to confirm the preview release of our Realm Flutter SDK, which will allow developers to begin testing sync in their Flutter applications. Realm .NET – Now with support for MAUI and Unity: The Realm team recently released MAUI support into preview for developers looking to take advantage of Microsoft’s newest framework, in addition to the Unity support that was added last year. Realm React Native – Now with support for Hermes: The latest release of Realm React Native includes support for Hermes to help JS developers keep their mobile applications fast and lightweight. Getting started with MongoDB Atlas Device Sync If you’re ready to start building with Device Sync, getting started is easy. Sign up or log in to your cloud account, deploy an App Services app, select your sync type, and dive right in. We’re excited to see what you build! Join our community forums to share your project, leave feedback, ask questions, and connect with other developers using MongoDB Atlas Device Sync and Realm. Deploy a sample app
Introducing MongoDB Realm’s Flexible Sync – Now Available in Preview
Twelve months ago, we made MongoDB’s edge-to-cloud data synchronization service, Realm Sync , generally available. Since then, Sync has helped hundreds of our customers build reliable, offline-first mobile apps that serve data to millions of end users – from leading telematics providers to chart-topping consumer apps . Historically, Realm Sync has worked well for apps where data is compartmentalized and permissions rarely change, but dynamic use cases with evolving permissions required workarounds. We knew we could do more, so today we are excited to announce the next iteration of Realm Sync – Flexible Sync. With the introduction of Flexible Sync, we are redefining the sync experience by enabling even the most complex use cases out-of-the-box without requiring any custom code. Intuitive query-based sync Distinctly different from how Realm Sync operates today, Flexible Sync lets you use language-native queries to define the data synced to user applications. This more closely mirrors how you are used to building applications today – using GET requests with query parameters – making it easy to learn and fast to build to MVP. Flexible Sync also supports dynamic, overlapping queries based on user inputs. Picture a retail app that allows users to search available inventory. As users define inputs – show all jeans that are size 8 and less than $40 – the query parameters can be combined with logical ANDs and ORs to produce increasingly complex queries, and narrow down the search result even further. In the same application, employees can quickly limit inventory results to only their store’s stock, pulling from the same set of documents as the customer, without worrying about overlap. Document-level permissions Whether it’s a company’s internal application or an app on the App Store, permissions are required in almost every application. That’s why we are excited by how seamless Flexible Sync makes applying a document-level permission model when syncing data – meaning synced documents can be limited based on a user’s role. Consider how an emergency room team would use their hospital’s application. A resident should only be able to access her patients’ charts while her fellow needs to be able to see the entire care team’s charts. In Flexible Sync, a user’s role will be combined with the client-side query to determine the appropriate result set. For example, when the resident above filters to view all patient charts the permission system will automatically limit the results to only her patients. Real-time collaboration optimizations Flexible Sync also enhances query performance and optimizes for real-time collaboration by treating a single object or document as the smallest entity for synchronization. This means synced data is shared between client devices more efficiently and conflict resolution incorporates changes faster and with less data transfer than before. Getting started Flexible Sync is available now. Simply sign up or log in to your cloud account, deploy a Realm app, select your sync type, and dive right in. Flexible Sync is compatible with MongoDB 5.0, which is available with dedicated Atlas database clusters (M10 and higher). Shared-tier cluster support for 5.0 and Flexible Sync will be made available mid-February. Have questions? Check out our documentation or the more detailed announcement post on the Developer Hub. Looking ahead Our goal with Flexible Sync is to deliver a sync service that can fit any use case or schema design pattern imaginable without custom code or workarounds. And while we are excited that Flexible Sync is now in preview, we’re nowhere near done. The Realm Sync team is planning to bring you more query operators, permissions integrations, and enhancements over the course of 2022. We look to you, our users, to help us drive the roadmap. Submit your ideas and feature requests to our feedback portal and ask questions in our Community forums . Happy building!
Introducing the MongoDB Atlas Data API, Now Available in Preview
As the leading data platform , MongoDB is hyper-focused on accelerating and simplifying how developers leverage their application data. This has led to the introduction of features like serverless instances and the Atlas Triggers that minimize the operational burden associated with traditional database workloads. Today, we’re excited to announce the next step forward in this mission with the introduction of the MongoDB Atlas Data API – a fully managed, REST-like API for accessing your Atlas data. The Data API makes it easy to perform CRUD and aggregations on your data in minutes and allows you to query MongoDB from your backend in any language, without the need for drivers. The next level of data access Organizations are increasingly relying on operational data layers to build distributed architectures like microservices for their modern applications to speed-up development and stay competitive in rapidly changing markets. These stacks often require scalable, highly available, and secure access to the data layer. The most popular way to architect these data services is to build APIs that communicate with MongoDB data over HTTPS using REST or similar protocols. However, creating a custom-built API typically takes a lot of time and effort. It's a painful process that introduces unnecessary operational burdens like provisioning additional servers, connection management, and scaling. With the Atlas Data API, customers can generate a fully managed, REST-like API for their Atlas data in seconds. Developers no longer need to worry about the underlying infrastructuring of their APIs, and instead can enjoy the efficiency of intuitive, out-of-the box data access, while still being able to leverage the always-on and highly available qualities of Atlas as the underlying database. This unlocks a whole new level of developer productivity for use cases that were previously time consuming to accomplish – such as building data-centric microservices, simplifying access from serverless functions, and integrating with third party services . The API even has built-in support for aggregation pipelines to use with services like Atlas Search . Try the Atlas Data API All customers now have the ability to enable the Data API for their Atlas deployment. We invite you to try it out today with a new or existing Atlas account. It’s incredibly easy to get started: simply choose the cluster you’d like to connect to and generate an API key. That’s all it takes to set up and start accessing Atlas data. Have questions? Check out our documentation or head over to our community forums to get answers from fellow developers. What's next for the Atlas Data API This preview release is just the beginning. Support for services like Data Lake and Serverless Instances will be added over the coming months. And, long term, we see the Data API as the next step in our journey to abstract and automate infrastructure decisions – to help developers build the future faster. Atlas Data API documentation can be found here