GraphQL stitching vs db replication
dba.stackexchange.com·15h·
Discuss: r/programming
💎Materialized Views
Preview
Report Post

There is a lot of topics on using Apollo server or any other stitching framework techniques in top of graqhQL APIs.

I believe taking a different approach might be most of the time better using DB replication

If you design and slice your architecture components (graphs) into modular business-domain units. And you delimit each of them with a db schema.

You can effectively use tools like Entity Framework, hibernate, etc to merge each db schema into a readonly replica.

Stitching approach has its own advantages and use cases same as db replication. Although, It is common to find a lot of articles talking about stitching but not much about database replication.

Db replication, might pose some challenges specially in legacy arch...

Similar Posts

Loading similar posts...