Skip to content

In-Memory View

In-Memory View#

The In-Memory View is component responsible for creating read-projections of tasks and business data entries. It implements the Taskpool and Datapool View API and persists the projection in memory. The projection is transient and relies on event replay on every application start. It is good for demonstration purposes if the number of events is manageable small, but will fail to delivery high performance results on a large number of items.

Features#

  • uses concurrent hash maps to store the read model
  • provides single query API
  • provides subscription query API (reactive)
  • relies on event replay and transient token store

Configuration options#

In order to activate the in-memory implementation, please include the following dependency on your classpath:

<dependency>
  <groupId>io.holunda.taskpool</groupId>
  <artifactId>camunda-bpm-taskpool-view-simple</artifactId>
  <version>${taskpool.version}</version>
</dependency>

Then, add the following annotation to any class marked as Spring Configuration loaded during initialization:

@Configuration
@EnableTaskPoolSimpleView
public class MyViewConfiguration {

}

The view implementation provides runtime details using standard logging facility. If you want to increase the logging level, please setup it e.g. in your application.yaml:

logging.level.io.holunda.camunda.taskpool.view.simple: DEBUG

Last update: July 5, 2021