Practice on history size and when to use continue as new #4629
-
A workflow use user message as signal, if every message result in a ContinueAsNew will cause too many workflow, but all message in one workflow will cause very large history, so I build the workflow like for {
// ...
if messageCount > 100 {
return workflow.ContinueAsNew(...)
}
} Any suggest on history size practice and when to ContinueAsNew ? |
Beta Was this translation helpful? Give feedback.
Answered by
longquanzheng
Nov 10, 2021
Replies: 1 comment 1 reply
-
Cadence has warning at 50k events and error at 200k(which would kill the workflow). Though they can be changed by config. I would say its recommended to continue as new at a few thousands signals if possible |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wenerme
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cadence has warning at 50k events and error at 200k(which would kill the workflow). Though they can be changed by config.
I would say its recommended to continue as new at a few thousands signals if possible