Skip to content

spec/p2p: Document reactors and the Reactor interface #599

Closed

Description

@cason

Reactor is the generic name for a component that interacts with the p2p communication layer.

The interaction between a reactor and the p2p layer is in both directions. To become a reactor, the component has to implement the p2p.Reactor interface and register with the p2p layer. The p2p layer invokes invokes the reactor to process relevant events, for instance, to deliver incoming messages and to inform when it has established connections to peers. The reactor invokes the p2p layer to send message to peers and to control its operation, for instance, for disconnecting from a peer.

Definition of Done

This interaction is relatively complex and needs to be properly documented:

Activity

  1. changed the title [-]List existing types[/-] [+]spec/p2p: Document reactors and the Reactor interface[/+] on Mar 28, 2023
  2. self-assigned this
    on Mar 28, 2023
  3. added
    spec
    on Mar 28, 2023
  4. added this to the 2023-Q2 milestone on Mar 28, 2023
  5. josef-widder commented on Apr 3, 2023

    @josef-widder
    Contributor

    Perhaps in this work, we could figure out how reactor-survey.md can be incorporated into the specifications. This document discusses how we can think about the system-level requirements that translate into requirements for p2p. The rest of #80 is less relevant for this issue, and we don't need to merge them soon, so we may close the PR once we have added the survey.

  6. linked a pull request that will close this issuespec/p2p: Specify the operation of a Reactor #714on Apr 14, 2023
  7. moved this from Todo to In Progress in CometBFT 2023on Apr 24, 2023
  8. cason commented on Apr 25, 2023

    @cason
    Author

    Perhaps in this work, we could figure out how reactor-survey.md can be incorporated into the specifications.

    I am not sure whether this should be part of this issue or of a different one, referring more specifically to the existing/standard reactors.

    I would add that updating the documentation we have about reactors, under spec/p2p/messages could be an item to be considered as well either in this issue or in the above mentioned possible new issue.

  9. removed this from the 2023-Q2 milestone on May 5, 2023
  10. moved this from In Progress to Done in CometBFT 2023on May 11, 2023
  11. moved this from Done to In Progress in CometBFT 2023on May 15, 2023
  12. reopened this on May 15, 2023
  13. cason commented on May 15, 2023

    @cason
    Author

    This issue was automatically closed with the merge of #714.

    I am reopening since there are still work associated to it.

  14. moved this from In Progress to Done in CometBFT 2023on Jun 12, 2023
  15. cason commented on Jun 16, 2023

    @cason
    Author

    Perhaps in this work, we could figure out how reactor-survey.md can be incorporated into the specifications. This document discusses how we can think about the system-level requirements that translate into requirements for p2p. The rest of #80 is less relevant for this issue, and we don't need to merge them soon, so we may close the PR once we have added the survey.

    #598 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

p2pspec

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions