Replies: 1 comment
-
Nevermind. I asked AI (Gemini): In the context of the Temporal platform, Elasticsearch serves as an optional but highly recommended component for advanced visibility and querying of workflow execution history. Temporal itself stores workflow execution history in its persistence layer (usually a relational database like PostgreSQL or MySQL), but this storage is optimized for operational purposes (workflow execution, state management) and not for complex analytical queries or full-text search. Here's how Elasticsearch integrates with Temporal and why it's beneficial: How Elasticsearch Integrates with Temporal: Temporal provides a feature called "visibility" which allows you to index workflow execution data into Elasticsearch. This indexing is done asynchronously, meaning it doesn't impact the performance of workflow executions themselves. The visibility feature indexes the following information about workflow executions: Workflow ID Advanced Search and Filtering: Elasticsearch provides powerful search capabilities, including: Full-text search: Search workflow executions based on text within search attributes or event history. Find specific workflows quickly: Search by workflow ID, Run ID, or other relevant information. Retention: Elasticsearch offers flexible data retention policies. You can configure how long workflow execution data is stored in Elasticsearch, independent of Temporal's persistence retention. This allows you to retain workflow history for longer periods for auditing or analysis. When to Use Elasticsearch with Temporal: Complex Queries: If you need to perform complex queries or searches on workflow execution history (beyond simple lookups by Workflow ID or Run ID), Elasticsearch is highly recommended. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Does ES have to be installed or rather, how important is it to a production system?
Scott
Beta Was this translation helpful? Give feedback.
All reactions