Giter Club home page Giter Club logo

Comments (7)

akka-ci avatar akka-ci commented on May 18, 2024

Comment by 2beaucoup
Monday Sep 05, 2016 at 13:03 GMT


Would it be safe to share the handlers between PoolFlow and the subflows? The handlers could then be created by the PoolFlow and then be injected into the subflows and could directly update the state without an additional state channel.

from akka-http.

akka-ci avatar akka-ci commented on May 18, 2024

Comment by jrudolph
Monday Sep 05, 2016 at 13:59 GMT


You mean to rely on all of the stages being run in the same context so that it would be safe to manipulate state of another stage? I don't think that's a good idea ;) We should try to avoid tricks.

The PoolSlot seems to me like a useful abstraction over a connection that automatically reconnects if the connection gets closed + some meta messages that transport (or manipulate) the current state.

The PoolConductor on top of that tries to keep track of the state of its slots and schedules requests in a best-effort way.

That seems to me like a clean separation.

from akka-http.

akka-ci avatar akka-ci commented on May 18, 2024

Comment by 2beaucoup
Monday Sep 05, 2016 at 14:12 GMT


You mean to rely on all of the stages being run in the same context so that it would be safe to manipulate state of another stage? I don't think that's a good idea ;) We should try to avoid tricks.

Agreed. SlotCommands in and SlotEvents out it is then.

The PoolSlot seems to me like a useful abstraction over a connection that automatically reconnects if the connection gets closed + some meta messages that transport (or manipulate) the current state.

But the (re-)connection is triggered by the conductor, no?

from akka-http.

akka-ci avatar akka-ci commented on May 18, 2024

Comment by jrudolph
Monday Sep 05, 2016 at 14:20 GMT


But the (re-)connection is triggered by the conductor, no?

Right now, yes, but we could (and should) change it if it simplifies the protocol.

from akka-http.

akka-ci avatar akka-ci commented on May 18, 2024

Comment by 2beaucoup
Monday Sep 05, 2016 at 14:23 GMT


But only the conductor does really know if a (re-)connection is actually necessary.

from akka-http.

akka-ci avatar akka-ci commented on May 18, 2024

Comment by jrudolph
Monday Sep 05, 2016 at 14:33 GMT


In the simplest case, the slot opens a connection if it has request(s) pending (or if was triggered by ConnectEagerlyCommand).

from akka-http.

ktoso avatar ktoso commented on May 18, 2024

Duplicate of #20

from akka-http.

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.