Open BrainBuzzer opened 4 years ago
Using Redis here would be overkill because frontend will need another backend to talk with. So rather than using Redis, we'll use a default option provided by GraphQL called as subscriptions.
Currently, we use Graphene v2.1.8
and the support for subscriptions has been added as of v3.0.0b1
. But till then, we can use a library graphql-ws which adds the websockets and subscriptions support for graphene. I think we should wait for proper v3.0.0
release, which should be really soon, before implementing the other complex logic for subscriptions.
Okay that works!
I wonder if we can use the beta library till the development period is over to create subscriptions. It's not the first priority yet, but definitely to be considered.
I'm positive about using the beta version. The production release will be out soon.
This issue needs to be thought of in near future. There needs to be data sent back from the server about the updates on progress in the Project Analysis and User Profile Analysis.
There are several ways this can be done, including some way to integrate Redis. There is a library for Django Channels that allows websockets creation. So need to study more about this and come up with the exact way to implement this feature.