mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +00:00
README: reword architecture overview section
This commit is contained in:
parent
83d450e014
commit
a21f8dbc6e
1 changed files with 6 additions and 4 deletions
10
README.md
10
README.md
|
|
@ -17,10 +17,12 @@ Distributed under Apache 2.0 license (details in `LICENSE` file.)
|
||||||
## Technical overview of tracker design
|
## Technical overview of tracker design
|
||||||
|
|
||||||
One or more socket workers open sockets, read and parse requests from peers and
|
One or more socket workers open sockets, read and parse requests from peers and
|
||||||
send them through channels to request workers. They in turn go through the
|
send them through channels to request workers. The request workers go through
|
||||||
requests, update internal state as appropriate and generate responses, which
|
the requests, update shared internal tracker state as appropriate and generate
|
||||||
are sent back to the socket workers, which serialize them and send them to
|
responses that are sent back to the socket workers. The responses are then
|
||||||
peers. This design means little waiting for locks on internal state occurs,
|
serialized and sent back to the peers.
|
||||||
|
|
||||||
|
This design means little waiting for locks on internal state occurs,
|
||||||
while network work can be efficiently distributed over multiple threads,
|
while network work can be efficiently distributed over multiple threads,
|
||||||
making use of SO_REUSEPORT setting.
|
making use of SO_REUSEPORT setting.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue