Glad to hear that you were able to resolve the issue!

One comment tho: I would really encourage you to upgrade to statefun 2.2.1,
which was released recently and it fixes a checkpointing related issue.

Kind regards,
Igal.

On Tue, Nov 24, 2020 at 10:10 PM Lian Jiang <jiangok2...@gmail.com> wrote:

> 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>
>

Reply via email to