Skip to content

Commit

Permalink
Use box-drawing characters for clearer diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
evolutics committed Sep 30, 2023
1 parent e5fb094 commit 564a14b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ the old container is stopped _before_ a new container is started

```
old container stop
------------------------------|
┄┄┄┄──────────────────────────┤
start new container
|-----------------------------
├─────────────────────────┄┄┄┄
```

This causes a service interruption as there is a time when neither container is
Expand All @@ -26,9 +26,9 @@ Imagine that we could make the container lifetimes overlap instead

```
old container stop
--------------------------------------------------|
┄┄┄┄──────────────────────────────────────────────┤
start new container
|-------------------------------------------------
├─────────────────────────────────────────────┄┄┄┄
```

If a reverse proxy seamlessly switches traffic over from old to new container,
Expand Down Expand Up @@ -85,10 +85,10 @@ See [`example/compose.yaml`](example/compose.yaml) for a demo. It defines a
service called `greet` made available on localhost:8080 via a `reverse-proxy`:

```
localhost:8080 +-------------------------+ +-----------------+
----------------------| reverse-proxy container |--------| greet container |
:80 | (stop-first) | :80 | (start-first) |
+-------------------------+ +-----------------+
localhost:8080 ╭─────────────────────────╮ ╭─────────────────╮
──────────────────────┤ reverse-proxy container ├────────┤ greet container
:80 (stop-first) :80 (start-first)
╰─────────────────────────╯ ╰─────────────────╯
```

With this design the service stays available, even during updates. You can play
Expand Down

0 comments on commit 564a14b

Please sign in to comment.