Distributed Cache for ProcessDefinitionInfoCache

Hi,

Is it possible to use a distributed cache for ProcessDefinitionInfoCache?
I read Joram Barrez’s blog about using distributed cache as process definition cache, but unlike ProcessDefinitionCache, ProcessDefinitionInfoCache cannot be configured via ProcessEngineConfigurationImpl.

If not, is it okay if we would implement a custom distributed cache extending ProcessDefinitionInfoCache and pass it to the DeploymentManager as ProcessDefinitionInfoCache?

Regards,
Mohammad

Hey Mohammad,

Is it possible to use a distributed cache for ProcessDefinitionInfoCache?

If you implement your own extension, I don’t see why it won’t be possible.

ProcessDefinitionInfoCache cannot be configured via ProcessEngineConfigurationImpl.

This is clearly an oversight and a setter can be added to the ProcessEngineConfigurationImpl so you can set a custom ProcessDefinitionInfoCache in the configuration. You can provide a PR that we can review and merge within the engine. As you have noticed you can also pass it directly to the DeploymentManager.

Cheers,
Filip

1 Like

Hey Filip,

Thanks for your quick reply.

If you implement your own extension, I don’t see why it won’t be possible.

Yeah, I just wanted to double check so that that wouldn’t cause unintended consequences.

You can provide a PR that we can review and merge within the engine.

Great! I’ll do it and hope to see it in next releases :wink:

1 Like