You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a case that I have 2 applications that have the same data but uses other DBs. Now we want to create a service with Hasura so those 2 applications will use it and share that data. The thing is, that some models in each application will have a reference to some data in Hasura. For example in application A there is a cat with some props that is saved in A's DB but there is a property 'location' that is referenced to the Hasura app. My question is, what do you think will be a better approach:
A's server should fetch the data for the cat from Hasura and return it to the client
A's client should fetch both from its DB and from Hasura and connect between them in the client.
I'm asking this because I think that in option 1 the advantages of Hasura such as event triggers, Apollo cache in the client and code saving might be loss. On the other hand it might be a lot easier to do it with option 1 for us.
I would like to have opinions from personal experiences.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a case that I have 2 applications that have the same data but uses other DBs. Now we want to create a service with Hasura so those 2 applications will use it and share that data. The thing is, that some models in each application will have a reference to some data in Hasura. For example in application A there is a cat with some props that is saved in A's DB but there is a property 'location' that is referenced to the Hasura app. My question is, what do you think will be a better approach:
I'm asking this because I think that in option 1 the advantages of Hasura such as event triggers, Apollo cache in the client and code saving might be loss. On the other hand it might be a lot easier to do it with option 1 for us.
I would like to have opinions from personal experiences.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions