Search code examples
orleans

If a Grain subscribes to an Orleans Stream, will it never get deactivated?


If a Grain subscribes to an Orleans Stream, does that mean that this Grain will never get deactivated? Or will it get deactivated, and just become active again when a message gets published to the Stream that it was subscribed to?


Solution

  • In both cases, implicit and explicit, grain will be deactivated if no new events arrive, and will be reactivated when a new event comes.