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: COMPONENTS.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -137,6 +137,21 @@ Usage:
137
137
138
138
Images are normally stored in the '/static' folder in `img` or `diagrams`.
139
139
140
+
### Dark mode images
141
+
142
+
To provide a separate image for dark mode, use the `srcDark` prop:
143
+
144
+
```
145
+
<CaptionedImage
146
+
src="/diagrams/my-diagram.svg"
147
+
srcDark="/diagrams/my-diagram-dark.svg"
148
+
title="My diagram"
149
+
alt="Description of the diagram"
150
+
/>
151
+
```
152
+
153
+
When `srcDark` is provided, both images are rendered in the DOM and the browser loads both upfront. CSS toggles visibility based on the active theme, so switching between light and dark mode is instant with no loading delay. When `srcDark` is omitted, the component renders a single image as usual.
154
+
140
155
### Zooming images
141
156
142
157
When images are complex and may not render in a readable fashion on normal monitors, you can enable a minimal form of zooming by setting the `zoom` prop to true:
Copy file name to clipboardExpand all lines: docs/best-practices/cost-optimization.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ See [Spooky Stories: Chilling Temporal Anti-Patterns](https://temporal.io/blog/s
62
62
### Large payloads in Workflow History
63
63
64
64
Passing multi-megabyte payloads through Workflows when external storage (S3, blob storage) is more appropriate.
65
-
Use [compression](/troubleshooting/blob-size-limit-error#why-does-this-error-occur) or the [claim check pattern](https://dataengineering.wiki/Concepts/Software+Engineering/Claim+Check+Pattern) for large data.
65
+
Use [compression](/troubleshooting/blob-size-limit-error#payload-size-limit) or the [claim check pattern](https://dataengineering.wiki/Concepts/Software+Engineering/Claim+Check+Pattern) for large data.
66
66
67
67
### Over-optimization at the expense of observability
68
68
@@ -137,7 +137,7 @@ For detailed discussion of this tradeoff, see [How many Activities should I use
137
137
138
138
### Child Workflows vs Activities
139
139
140
-
[Child Workflows cost 2 Actions](/cloud/actions#child-workflows) compared to an Activity's 1 Action.
140
+
[Child Workflows cost 2 Actions](/cloud/actions#workflow) compared to an Activity's 1 Action.
141
141
See [Child Workflows documentation](/child-workflows) for detailed comparison of capabilities and use cases.
142
142
143
143
### Retry Policies
@@ -165,7 +165,7 @@ Refer to this blog post on [Mastering Workflow retry logic for resilient applica
165
165
### Local Activities
166
166
167
167
A [Local Activity](/local-activity#local-activity) is an Activity Execution that executes in the same process as the Workflow Execution that spawns it.
168
-
Therefore, multiple Local Activities that run back-to-back only [count as a single billable action](/cloud/actions#activities), whereas each regular Activity counts as a billable action.
168
+
Therefore, multiple Local Activities that run back-to-back only [count as a single billable action](/cloud/actions#activity), whereas each regular Activity counts as a billable action.
169
169
However, there are tradeoffs to converting regular Activities to Local Activities.
170
170
For example, if a specific Local Activity fails, *all* of them will be retried together.
171
171
Review [the docs](/local-activity) or reach out to your account team to learn more.
@@ -189,7 +189,7 @@ Use Regular Activities instead of Local Activities if you require any of the fol
189
189
2. For Search Attributes that must be updated during Workflow Execution, each `UpsertSearchAttributes` call counts as 1 Action regardless of how many attributes are updated.
190
190
Batch multiple related attribute updates into single operations to reduce Actions consumed.
191
191
192
-
See the [Temporal Cloud Action Documentation](/cloud/actions#workflows) for details.
192
+
See the [Temporal Cloud Action Documentation](/cloud/actions#workflow) for details.
193
193
194
194
#### Signal handling
195
195
@@ -252,7 +252,7 @@ Alternatively, if you are looking to do analysis on closed Workflow Executions,
252
252
### Validation approach
253
253
254
254
1.**Test in non-production**: Validate functional correctness before production deployment
255
-
2.**Monitor comprehensively**: Leverage the [Usage dashboard](/cloud/actions#usage) in the Cloud UI to track the impact on Actions and Storage after optimizations are made
255
+
2.**Monitor comprehensively**: Leverage the [Usage dashboard](/cloud/actions-usage#usage) in the Cloud UI to track the impact on Actions and Storage after optimizations are made
256
256
3.**Progressive rollout**: Deploy to a small percentage, validate, then expand. Review the [Worker Versioning documentation](/production-deployment/worker-deployments/worker-versioning) to learn about rolling out changes to Workflows
257
257
4.**Continuous review**: Re-evaluate optimization effectiveness quarterly as system evolves
0 commit comments