-
Notifications
You must be signed in to change notification settings - Fork 9
Node 6 implementation #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @flovilmart are you running your app inside container engine? i am asking it because from your code i understand that GCLOUD_PROJECT and GOOGLE_APPLICATION_CREDENTIALS are mandatory but if you run inside google container engine or inside GCP then those params are not required. Also what about unsubscribe? I noticed that you didn't implemented the unsubscribe and i think that we must find a better solution (than SIGTERM or SIGINT) something from the platform... |
I believe those env variables are set by default on container engine and app engine. I'm running on kubernetes. Also, we could transform those as warnings or make sure the google platforms set them. For the unsubscribe, I'm not sure how to correctly destroy those. We should probably add the event handlers in this code no? |
Hi ,
|
This is part of google authentication docs, https://developers.google.com/identity/protocols/application-default-credentials I agree I should probably remove the warning and let the calls fail naturally.
2 subs / live query server, which can add up to a lot with kubernetes if those are not destroyed :) |
I agree about the k8s one because each time you update a version (for instance) it will power off and power on the new instances according to your replica set ... |
that seems to be reasonable, unless we have a way to clear up subscriptions that are unused for a while. |
Let's tested it and see if it works well. Do you know how it is implemented in Redis adapter? |
@ranhsd I added SIGINT/SIGTERM handlers to delete the subscription, works OK when removing, the process.exit(0) on parse-server CLI. parse-community/parse-server#3634 |
Hi @flovilmart did you change also the pub/sub adapter ? |
Yup there too: #3 |
Ok. I merged it. Love the idea that we are not using babel anymore. I will also change it on the other adapter (the firebase authentication) |
@flovilmart You are using this adapter only in production or you also use it for development mode? Currently i am planning to use this one in production only scenarios and use Redis for development |
We're planing to deploy to prod in the upcoming weeks. We're deploying in dev and scaling it across multiple AZ to see how it goes |
Closing as implemented. |
Hey @ranhsd, I'm currently scaling up a bit,
I tweaked a few thing there, what do you think?
https://github.com/AmpMe/parse-server-gcloud-pubsub
The text was updated successfully, but these errors were encountered: