Infrastructure Question: I need a 'microservice' o...
# random
w
Infrastructure Question: I need a 'microservice' or worker to fetch / scrape images of open API's for the resources that don't have images yet in my Prisma Database. What is a smart way to set this up? I'd love to see this being serverless or as a microservice, it needs to fetch images for existing resources without images and new resources being added, any general suggestions would be appreciated!
I already have a 'microservice' if you can call it that, that fetches data and connects to my Prisma Server, and inserts the data using custom resolvers / mutations.
I guess the best way to set this up would be to create a micro-server that queries the GraphQL database for imageless resources, queue's them en fetches those images and then pushes data back to the GraphQL database? Meanwhile also listening for real-time updates (update / creation of resources?)
v
I asked a while ago about Serverless deploys of Prisma in the #serverless channel and got no feedback, so I would be SUPER interested to know how people do this now as well.
For utility stuff like this or even a whole app, either way.