Hi,
I have seen in other topics that to avoid running into 2MB blob size limit issue, recommendation is to use external storage e.g. s3. Are there any examples available for this?
Thanks,
Jay.
Hi,
I have seen in other topics that to avoid running into 2MB blob size limit issue, recommendation is to use external storage e.g. s3. Are there any examples available for this?
Thanks,
Jay.
We don’t have any samples for this that I am aware of. Which SDK are you using?
Thanks. Are you looking specifically how to write and retrieve data to/from s3 (this would be just your code so nothing Temporal specific), or are you trying to figure out how to handle errors if you go over the blob max?
So to give you some context.
With the above in mind, we will have certain activities where we will exceed the 2Mb size for data that an activity may return. We want to make it easy for teams to write their own activities, so some questions we are trying to answer include:
So it’s more than just how to write and retrieve data to/from s3, it was more to see that code in context of Temporal and activity execution and understand what is/isn’t possible.
Thank you,
Jay.
- Is it possible to make the read/write of data from external storage transparent to the person writing activity.
I think you should be able to use interceptors for this, see sample here.
Hi @tihomir,
Sorry for the delay in replying.
If we take the DSL example in samples: samples-go/dsl at main · temporalio/samples-go · GitHub, could you provide a little more insight into how the interceptors can be used to pass in the arguments from DSL using external storage?
I don’t need to see the actual code storing the parameter value in external storage, but I’m not fully clear on how exactly to write the interceptors? Things I’m not clear on include:
Thank you,
Jay.