Advice needed: Since Queryable State is on the pa...
# troubleshooting
n
Advice needed: Since Queryable State is on the path of deprecation, how should we debug the broadcast state? I am pushing the broadcast state usecase into production and i need to have some debuggability capability in place. The broadcasted data is like restaurant_id, restaurant_name kind of key value pair. what do you suggest to have some visibility around the broadcasted state? The size will not be more than 100MBs
r
Depending on how you are deploying the job, you could consider handling this through logs. Perhaps a log within the
processBroadcastElement()
function calls that can provide some insight into the element that was seen as well as the elements that were currently in state? You could also accomplish this with a flag as well that possibly periodically outputs all of the elements in state.
n
Great thanks!