Solved

Data Sync

  • 13 July 2022
  • 1 reply
  • 79 views

What's the best approach to keeping Contentstack data in sync with our in-house database? What's the recommended database we should use for this?

icon

Best answer by nick.nguyen 13 July 2022, 20:18

View original

1 reply

Userlevel 4

Using our Datasync utility is an option store content to a database, generally a filesystem or MongoDB instance. Datasync uses webhooks to track event triggers that will sync content for you with the provided boilerplate.

You can also just handle storing data yourself, using the Sync API. Its fairly straight forward, but long story short, you run an initial sync to grab content and then run sub-sequent syncs over time to track delta changes made to your stacks. This can be run daily, weekly, monthly, whatever you want. The format is strictly JSON, so you can store it anywhere you would like whether a traditional database vs not.

Reply