docs: add new diagrams for game loop, gateway, guarded suspension, half-sync/half-async, health check

This commit is contained in:
Ilkka Seppälä
2025-04-06 20:55:07 +03:00
parent 9b64cdee98
commit 9d23a234bb
11 changed files with 20 additions and 4 deletions
+4
View File
@@ -34,6 +34,10 @@ Wikipedia says
> The Half-Sync/Half-Async design pattern is used to solve situations where one part of the application runs synchronously while another runs asynchronously, and the two modules need to communicate with each other.
Sequence diagram
![Half-Sync/Half-Async sequence diagram](./etc/half-sync-half-async-sequence-diagram.png)
## Programmatic Example of Half-Sync/Half-Async Pattern in Java
The Half-Sync/Half-Async design pattern is a concurrency pattern that separates synchronous and asynchronous processing in a system, simplifying the programming model without affecting performance. It's particularly useful in scenarios where you have a mix of short, mid, and long duration tasks.
Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB