mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 18:16:16 +00:00
docs: add new diagrams for game loop, gateway, guarded suspension, half-sync/half-async, health check
This commit is contained in:
1 parent
9b64cdee98
commit
9d23a234bb
11 files changed
+20
-4
No files matched your search
@@ -35,6 +35,10 @@ Wikipedia says
|
||||
|
||||
> A server that acts as an API front-end, receives API requests, enforces throttling and security policies, passes requests to the back-end service and then passes the response back to the requester.
|
||||
|
||||
Sequence diagram
|
||||
|
||||

|
||||
|
||||
## Programmatic Example of Gateway Pattern in Java
|
||||
|
||||
First, we define a `Gateway` interface. This interface represents the contract for our external services. Each service that we want to interact with will implement this interface.
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
Reference in new issue
Block a user