Skip to content

[checkpoint]: one-instance architecture #42

@sanam2405

Description

@sanam2405

keep the postgres SQL and mongoDB NoSQL database in synchronisation with each other

Discussed in #37

Originally posted by sanam2405 April 23, 2024
SITUATION - I have two databases (one Postgres and another MongoDB) storing data about my users (some data have intersections like email, name, age, etc.) and some data is exclusive to the two databases.

TASK - Now I wish to have my data in sync with each other. Basically the common fields in both the SQL and NoSQL should be in sync real time even after performing CRUD in any of the DBs or both the DBs.

I am thinking about implementing a Kafka CDC(change data capture) but I mostly find that people are syncing SQL-SQL or NoSQ-NoSQL DBs using Kafka.

What is a viable solution if i want the synchronisation to work in both ways?

To-Do

  • mongoDB user schema should have the postgres user id
  • seed the sql and nosql dbs with common data
  • add kafka change data capture to stream the CRUD data changes across the databases

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions