Where to store variables to access from an external service?

Hi team!

Basic question, but generally speaking if during workflow execution I want to store a variable and be able to access it from a different service via Temporal SDK, are search attributes/memos the best bet here? Or perhaps an external store would be a better fit?

Thanks!

Use a query.