Hello :spock-hand: I need some advice pls ! I am d...
# orm-help
k
Hello 🖖 I need some advice pls ! I am developing a blockchain monitoring dashboard. It’s an aggregator of several data streams: tweets, github statistics, etc...so I need to regularly request several api’s and store the result to make it available to another frontend...What is the best stack to use with Prisma for this kind of services ?
✅ 1
k
Well, what is the tech you are already used to ?
k
Next JS / Node JS !
On backend, i need to query third-party api every 15min and populate a database...this database is exposed with graphQL for my Next JS front end...
I was wonderning if there’s prisma feature or perhaps a framework to do aggregation like this...
k
Great. I would also personally would opt for something GraphQL myself.
Prisma won't be able to handle the API calls for you its an ORM. But, considering you are using GraphQL, You could use a federation
👍 1
That may or may not be overkill but if you're using a *nix compute / host you can use cronjobs to run scheduled node scripts. I'm not too familiar with serverless but I'm sure that can be easily handled with that too
k
I was just reading about node-cron on vercel...actually i can even do everything on nextJS
Thank you for your help @KJReactor 🙌
👍 1
k
There's no doubt you could. I would however, have the BE handle that rather than the FE. That's just but though. It all depends on your use-case
k
For now it’s just a MVP, i need to deliver fast
k
I see. Are the data from these API calls consumed by all clients or is it more of a per client basis?
k
consumed by all client !
k
Yea, I personally think it would be best to have the BE handle it. Just saying
k
Thanks for the advice...i’ll already try to familiarize with Prisma 😉
k
No prob. I liked Prisma since 0.* versions. Its easy once you get used to it.
👍 1
n
Hey 👋
i’ll already try to familiarize with Prisma
Just to add to the point of familiarising with Prisma, this prisma-examples repository should be helpful to you.
n
I would go Prisma, Nexus, Nexus-Prisma, Graphql, Apollo, gql code gen, NextJS and React. Nexus has a way that you could do custom plugins that way you could do one or more aggregation plugins if those data streams your collecting are similar