Back to blog

DataSync Offers the Best Content Synchronization Solution

datasyncimage.png

The all-new DataSync is here.

With the addition of DataSync to our synchronization offerings, we now provide the best and the most comprehensive synchronization solutions in the headless CMS space. We have something for every kind of content synchronization need. And that makes us the go-to choice for all things synchronization related.

Our Synchronization offerings include the following components:

  • Sync API Get all content or only incremental (delta) updates, anywhere, anytime.
  • DataSync (New) Sync Contentstack data with your database (FileSystem, MongoDB)
  • SDKs with Sync API support Build power apps using our SDKs which now support Sync APIs
  • Mobile sync helpers Create offline apps by storing content on the device’s local storage

We will learn more about each of these components later in this post.

All About the New DataSync

Contentstack DataSync Overview

DataSync allows you to synchronize Contentstack data with your database (MongoDB, Filesystem, etc.).

DataSync consists of tools that we have combined to give you the best synchronization possible.

Whenever a piece of content is published, deleted or updated, Datasync saves a copy of the content changes in your database. Subsequently, all page requests are served directly from your database, instead of from Contenstack through APIs.

Why Use Contentstack DataSync?

Datasync is better than any synchronization module available. The following lists some of the compelling reasons to use DataSync.

  • Deprecation of contentstack-express framework
    The contentstack-express web framework has a built-in sync utility. However, we have deprecated the framework. If you are using the framework’s sync, please switch to the faster and better DataSync.
  • Synchronize data fast
    In comparison to the 'sync' functionality of the contentstack-express framework, DataSync synchronizes data over 8x faster! The former takes about 2 hours to synchronize 10,000 items, whereas the latter synchronizes the same data in under 10 minutes.
  • Reduced API calls
    Serving content through your database after syncing reduces the number of API calls made to Contentstack to fetch data.
  • Use it with any database
    We offer connectors for FileSystem and MongoDB databases. But you can write your own connectors and use DataSync with any database of your choice.

Learn more about DataSync.

Contentstack Synchronization Tools

The Sync API

In addition to DataSync Contentstack includes the Sync API that is part of our Content Delivery APIs and can be used to sync complete data and fetch incremental updates. It provides three main synchronization requests:

Initial sync: For synchronizing complete data, i.e., the content of a stack that has ever been published to the specified environment. Initial synchronization is usually used to load data when the user uses the app for the very first time.

Subsequent sync: For keeping your app up-to-date through delta updates. After completing an initial sync, this request fetches only the content that was published since the last synchronization.

Pagination token: To fetch the subsequent batches of data.

Read our Sync API documentation to get started with the Sync API.

DataSync

DataSync allows you to synchronize Contentstack data with your database. While we have covered some basics in the previous sections, here are some additional resources to help you get started with DataSync:

SDKs with Sync API Support

Most of our content delivery SDKs support Sync API. Refer to the corresponding documentation to learn how the Sync API works with these SDKs.

We have also created SDK-specific playground apps to help you get started with Contentstack Sync API. Clone these apps and try out the APIs to get a first-hand experience of the synchronization methods.

Mobile Sync Helpers

The mobile sync helpers enable your mobile apps to save data on the device’s local storage, which serve as the base for creating offline apps. These helpers contain methods that are required to map data fields of your content types and Realm database management system. Learn more about them.

We have created a couple of example applications that demonstrate using mobile sync helpers with our SDKs. Refer to the documentation to get started with the helpers.

Share on:

About Contentstack

The Contentstack team comprises highly skilled professionals specializing in product marketing, customer acquisition and retention, and digital marketing strategy. With extensive experience holding senior positions at renowned technology companies across Fortune 500, mid-size, and start-up sectors, our team offers impactful solutions based on diverse backgrounds and extensive industry knowledge.

Contentstack is on a mission to deliver the world’s best digital experiences through a fusion of cutting-edge content management, customer data, personalization, and AI technology. Iconic brands, such as AirFrance KLM, ASICS, Burberry, Mattel, Mitsubishi, and Walmart, depend on the platform to rise above the noise in today's crowded digital markets and gain their competitive edge.

In January 2025, Contentstack proudly secured its first-ever position as a Visionary in the 2025 Gartner® Magic Quadrant™ for Digital Experience Platforms (DXP). Further solidifying its prominent standing, Contentstack was recognized as a Leader in the Forrester Research, Inc. March 2025 report, “The Forrester Wave™: Content Management Systems (CMS), Q1 2025.” Contentstack was the only pure headless provider named as a Leader in the report, which evaluated 13 top CMS providers on 19 criteria for current offering and strategy.

Follow Contentstack on LinkedIn.

Published: Mar 26, 2019


Background.png