You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sdk_developers/training/executable.md
+33-22Lines changed: 33 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
-[Logging & Debugging](#logging--debugging)
11
11
-[Practical Examples](#practical-examples)
12
12
13
-
## 📋Introduction to _Executable
13
+
## Introduction to _Executable
14
14
* The _Executable class is the backbone of the Hedera SDK execution engine. It handles sending transactions and queries, retry logic, error mapping, and logging, allowing child classes (like Transaction and Query) to focus on business logic.
15
15
16
16
```mermaid
@@ -24,7 +24,7 @@ graph TD;
24
24
```
25
25
26
26
27
-
## ▶️⚙️Execution Flow
27
+
## Execution Flow
28
28
29
29
-How _execute(client) works in the Hedera SDK?
30
30
@@ -48,7 +48,7 @@ Here’s how child classes hook into the execution pipeline:
48
48
|`_map_response(response, node_id, proto_request)`| Convert the raw gRPC/Proto response into the SDK’s response type (e.g., TransactionResponse, Query result) that gets returned to the caller. |
49
49
50
50
51
-
## 🔁Retry Logic
51
+
## Retry Logic
52
52
- Core Logic:
53
53
1. Loop up to max_attempts times — The outer for loop tries the operation multiple times
54
54
2. Exponential backoff — Each retry waits longer than the previous one
@@ -61,7 +61,7 @@ Here’s how child classes hook into the execution pipeline:
61
61
**_Retry logic = Try the operation, wait progressively longer between attempts, pick a different node if needed, and give up after max attempts. This makes the system resilient to temporary network hiccups._**
62
62
63
63
64
-
## ⏳Exponential backoff
64
+
## Exponential backoff
65
65
Key Steps:
66
66
67
67
* First retry: wait `_min_backoff` ms
@@ -88,7 +88,7 @@ Key Steps:
88
88
89
89
_(If the [gRPC](https://en.wikipedia.org/wiki/GRPC) call itself fails, switch to a different network node and retry.)_
0 commit comments