Probolved solved. It is because another function sends messages to myFunc by using non hard coded ids. Thanks.
On Tue, Nov 24, 2020 at 11:24 AM Lian Jiang <jiangok2...@gmail.com> wrote: > Hi, > > I am using statefun 2.2.0 and have below routing: > > downstream.forward(myFunc.TYPE, myFunc.TYPE.name(), message); > > I expect this statement will create only one physical myFunc because the id > is hard coded with myFunc.TYPE.name(). > > This design can use the PersistedValue field in myFunc for all incoming > messages. Unfortunately, > > I observed multiple physical myFunc objects are created and the > PersistedValue field does not work for all incoming messages. > > Any idea why this happens? Thanks for any clue. > > -- Create your own email signature <https://www.wisestamp.com/signature-in-email/?utm_source=promotion&utm_medium=signature&utm_campaign=create_your_own&srcid=5234462839406592>