-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Questions about Direct Access Feature #5442
Comments
or we should just turn it on? I've never tested it which i'll try and do real soon now.... I don't know what potential issue if any it may cause. if there's not breaking change to it, then we should just turn it on. I think that @flovilmart wanted it out there to figure out if there was a breakage issue iircc ... BUT, adding it to the definitions and testing would be good either way. |
Most of the Test break with this feature on. There can be bad side effects due to the statefulness of the JS SDK. |
In which case, @dplewis your initial suggestion is spot on. |
I mean the whole test suite is broken when using this feature Sent with GitHawk |
I haven’t used it yet and don’t know the limitations but would love too. At least start testing against different routing matches and see how responses are handled |
Simple thing is to turn it on for the test suite, and see what breaks. In an ideal world, all tests should pass as it warrants all cloud code / integration tests are OK. Sent with GitHawk |
It’s a great feature that is known by few. Definitely could use feedback. I’ll test it out shortly. |
@dplewis or @davimacedo do you know what the state of this feature is? It's feature flagged, merged into master but a lot of test cases still fail, so not safe for production, is that correct? |
@mtrezza i have it in production for more than a year, since 2.8 IIRC, if I understand it correctly requests from cloud code go directly to the instance handling the original request as opposed going outside to the load balancer doing TLS and back inside again. Not checked the failing tests though... |
@mtrezza I think it was because I had a lot of performance and memory problems with the 2.x series, I do not remember exactly nowadays, I did not know much about the code then (not that it has change too much :))), but one of them was single schema cache, parse server would leak memory without it, and push notifications were slow so I opted in for direct access. I also used experimental feature to delete invalid tokens, but that one was removing for me valid tokens at times, but single schema cache and direct access remained in my deployment and everything seems working fine. Also, since upgrading to 4.x memory consumption and performance characteristics changed drastically, 4.x is much faster in serving requests (Note: I have skipped 3.x entirely as I needed to rewrite a lot of cloud code and it took me too much time). |
@mman Thanks for the details. Regarding the invalid push token cleanup, I saw a significant resource improvement after activating it, especially DB side, because each push would increase the installation push notifications count, which was unnecessary for invalid tokens, causing DB writes. You may want to read my analysis in #6052 and decide whether it is production ready in your setting. I should do a PR for it soon so we can remove the experimental flag. Sent with GitHawk |
@mtrezza I have this feature activated for some of my apps with huge performance improvement in terms of memory and latency. I believed we should switch this option to be activated by default but you've just raised that some test cases are failing. Where did you see they failing? Would you mind to open a PR with this option set true by default so we can see them failing and work together to fix it? |
@davimacedo I only inferred failing test cases from the conversion in #5550. It looks as if the experimental feature was merged despite failing cases to make it available and get more insight. Maybe @dplewis can clarify this. Yes, let's team up and make this enabled by default, will open a PR and see if there are any failing test cases. |
@davimacedo |
Sure thing. |
Ok. Closing again :) |
@davimacedo Thanks. My apologies :) |
So if I understand this correctly:
Enabling this feature
Enabling this feature would make requests faster since there is one less request, should this be mainstreamed?
Should there be tests run against this?
Add to parse-server config definitions?
We should add documentation to make more users aware of this feature
The text was updated successfully, but these errors were encountered: