Skip to content
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

Idea: Add an opt-in mode to act as a proxy without managing tokens #262

Open
TysonAndre opened this issue Jul 28, 2020 · 0 comments
Open

Comments

@TysonAndre
Copy link
Contributor

This may be useful for apps that have many short-lived processes and would otherwise open and close a lot of connections (e.g. to APNS HTTP/2, or to GCM)

  • HTTPS Handshakes to establish connections to gcm add time
  • clients should not repeatedly open and close connections to APNs

This would be /proxied_push, which would behave like /push, except that

  • The proposed endpoint would wait for all push responses to be sent up to a reasonable timeout.
  • The redis db would add placeholders for removing tokens/subscriptions

The model of storing push tokens(i.e. delivery points) in redis has several inconveniences:

  • Inconvenient to compute aggregate statistics such as how many subscribers use android, without a possibly inefficient/long-running repeated call to SCAN. Alternate push backends may help with that if implemented, by adding various indexes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant