Giter VIP home page Giter VIP logo

Comments (5)

pimeys avatar pimeys commented on June 14, 2024

No. Pooling happens already in hyper, and with h2 pooling means one connection, because you can send multiple requests without waiting for responses, so it's async by nature.

The six connections for us is if one server crashes, we have five more to handle the load. It's more like a reminder that don't go wild with connections, one is usually enough for scaling purposes and for redundancy, you do well having six servers.

from a2.

dbrgn avatar dbrgn commented on June 14, 2024

Ah, you started 6 separate processes, not 6 threads inside the same process, correct? 🙂

from a2.

pimeys avatar pimeys commented on June 14, 2024

True. If you want to serve more iOS apps from the same process, you'd need more connections preferably in different threads.

And funny now when I think about this, you'd expect to be able to send notifications to different applications when using token-based authentication, but Apple confirmed this that you must always use a different connection, the token-based ones just give you an error when your key doesn't match to the first notification sent through that pipe (hence I forbid that on the type level)...

from a2.

dbrgn avatar dbrgn commented on June 14, 2024

😄 apple.

Ok, that makes sense 🙂 Then I'll just start two processes on two separate servers (one connection per server), that should be enough for my use case.

from a2.

pimeys avatar pimeys commented on June 14, 2024

Yeah, and you can scale up to somewhere around 64 connections, at least we could when we still were using solicit for sending. Be aware though, they will throttle and punish you at some point. When? Nobody knows.

from a2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.