boilerplate-nexus-prisma-apollo-graphql-express icon indicating copy to clipboard operation
boilerplate-nexus-prisma-apollo-graphql-express copied to clipboard

Questions On Redis

Open fullStackDataSolutions opened this issue 4 years ago • 2 comments

This is very, very helpful!!

Most GraphQL examples I see are too trivial to use in any real world example.

I see you are using Redis to handle subscriptions, which is pretty cool. Is there a reason you wouldn't use it for queries that don't change much either?

The more I look at this the more impressed I am. I would also really know how you host this sever. I'm building a service of may own and get a bit lost on what hosting service to use.

fullStackDataSolutions avatar Jun 25 '21 17:06 fullStackDataSolutions

Hello, the main reason I have used redis for subscriptions is because I always use redis in my side projects and therefore I needed a basic setup ready to start. Basically it is to have better management and scalability of event messages with different node processes (pm2 cluster processes).

Also note that this repo is not updated with the latest version of prisma and nexus so there will be further changes to be made.

This repo is simply running on a linux machine with caprover installed, with the corresponding service instances: redis and postgresql (installed always using caprover) nothing more.

arbytez avatar Jun 27 '21 13:06 arbytez

Thanks. I’m actually using this boilerplate for a federated gateway. I do use Prisma and nexus for the underlying service. Honestly it wouldn’t be too hard to update your repo. It’s mainly just the command line parts.

The company I work for uses AWS. I’m working on a private project and looking for another hosting and build and deploy solution. I would love to touch bases and pick your brain some time.

fullStackDataSolutions avatar Jun 28 '21 01:06 fullStackDataSolutions