This message was deleted.
# opal
s
This message was deleted.
o
Howdy @Avo Sepp! 🙂 Yep you’re pretty much spot on 🎯 What you described should work very well. You can also (have them) expose an API service that queries the data source instead of fully replicating it (remember that fetching and loading happens in async in the background and not part of the critical path of an OPA query.
You can also have the team produce a custom data-fetch provider - so they can fully own interaction with the data source they manage. These and others are all valid paths
Hope this helps- feel free to follow up with additional questions
a
It does. I think a data fetch provider would be too big an ask for this team? But I’ll review the docs and make a review. Do you have a recommendation on what database we should use for the data? We can go in any direction with it.
The docs point to using Postgres a lot. Our data is JSON, is it smart to put it into a SQL database and have OPAL convert it back to JSON? Or… 🤷
o
Depending on the data source a fetch provider can be as short as 8 lines of Python.
👀 1
1. You can store JSON in Postgres (We [Permit.io] do ) 2. But you can choose whichever datastore you prefer - Mongo would do as well
o
A small thing to add that Postgres supports JSON type if you want to give it a shot 🙂 https://www.postgresql.org/docs/current/datatype-json.html
o
Thanks @Oded Bd 🙂 But @Avo Sepp - you do you. Postgres, Redis, Mogo, Snowflake, … - all good
a
I appreciate the information! My DB skills are poor, so I’m a little nervous. But I think I can take this and run with it for a while.
💪 2
o
We're here if you need anything.
🙏 1