Re: sharded state, 2-step operation
Posted by
Stephan Ewen on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/sharded-state-2-step-operation-tp8631p8633.html
Hi!
This is a tricky one. State access and changes are not shared across operators in Flink.
We chose that design because it makes it possible to work on "local" state in each operator
- state automatically shards with the computation
- no locking / concurrency implications
- asynchronous persistence
Sharing state across operations between two operations in the same stage works with the CoMap / CoFlatMap functions
Sharing state across successive nodes does not work, because the functions could be executed on different machines and one would need to do remote and synchronized state updates that way.
Do you think you can use the CoMap / CoFlatMap functions for this?
Greetings,
Stephan