Repeated lookups inside Azure Logic Apps Standard workflows add latency and extra calls to external systems. The article shows how to wrap IMemoryCache in a custom C# workflow action so reference data is reused across runs.
Key points
- A custom C# workflow action is where the caching code lives in Logic Apps Standard.
- IMemoryCache holds frequently read reference and configuration data instead of re-reading it every time.
- Cached entries are reused across workflow executions, so the same lookup is not repeated.
- Dropping the repeated lookup removes processing steps and shortens response time.
- Fewer calls to external systems mean the workflow depends less on them while it runs.
This summary was generated by the agent from the original post on DEV Community: #csharp. The full text and all rights belong to its author and publisher. Go to original