Best practice to fetch Temporal history

Hi everybody,

We are implementing Temporal as our workflow orchestrator.

Comming up to the design of how this all communicates with each other I am wondering if there is recommended way to be able to get all Temporal history to external service (custom java solution to store event history).

Is there some somebody could recommend? We are thinking about having another service which will pull a history from Temporal and send it to our Audit microservice but maybe there is some better/more automated solution?

Are you deploying Temporal server on-prem or using Temporal Cloud? Built-in way is to use archival/export:
If on-prem - Archival | Temporal Platform Documentation
if cloud - Workflow History Export | Temporal Platform Documentation

Thanks tihomir. We are using cloud. The problem with history export is that only relates to closed workflows but I would like to have to be able to fetch current state.

I would like to have to be able to fetch current state.

for running executions, can you explain why you need event history and not be able to use workflow query
to get workflow state needed?