Skip to content

Commit

Permalink
Focus on mechanics first
Browse files Browse the repository at this point in the history
Bring in the effects of other activity on the system in a follow-up lab
exercise.
  • Loading branch information
robertdfrench committed Jun 18, 2022
1 parent fc57b56 commit cd5b25a
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions F0_speed_test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@ without giving up the current CPU timeslice. This means they can be
faster than sockets in certain situations. It all has to do with the
cost of switching back from the client to the server and back.

Here's what it looks like with Doors:

```mermaid
sequenceDiagram
participant Other
participant Server
participant Client
participant User
Note right of Server: Using Doors
User->>Client: request
activate User
activate Client
Client->>Server: door_call
deactivate Client
deactivate Client
activate Server
Server->>Client: door_return
Expand All @@ -29,32 +28,27 @@ sequenceDiagram
Client->>User: response
deactivate Client
deactivate User
```

activate Other
Other->>Other: unrelated work
deactivate Other
And this is what it looks like with Sockets:

Note right of Server: Using Sockets
```mermaid
sequenceDiagram
participant Server
participant Client
participant User
User->>Client: request
activate User
activate Client
Client-->>Server: write
deactivate Client
activate Other
Other->>Other: unrelated work
deactivate Other
activate Server
Client-->>Server: read
Server-->>Client: write
deactivate Server
activate Other
Other->>Other: unrelated work
deactivate Other
activate Client
Server-->>Client: read
Client->>User: response
Expand Down

0 comments on commit cd5b25a

Please sign in to comment.