Camunda stateless

Would it be possible to use the camunda as stateless? I want to create a springboot application with service tasks only, would not like to save data, or create human tasks, is it possible to work without a database? Could I just instantiate the camunda dependency on my pom.xml without a database? Is there any example on github that I can see?

Thanks =)

1 Like

You need a database of some kind to run camunda.
But if you want, you can use an in memory H2 database and it’s pretty easy to create a synchronous process. Considering you’re only using service tasks assuming they’re just classes in your spring boot application.

2 Likes

An additional thing would be to keep your history level as “NONE”, so even in your in-memory database you keep the writing at a minimum.

Please check https://docs.camunda.org/manual/latest/user-guide/process-engine/history/#choose-a-history-level

You can set this up in your application.yml like the following:

camunda.bpm..history-level: AUDIT

For more information on the engine configuration in springboot, please check: https://docs.camunda.org/manual/latest/user-guide/spring-boot-integration/configuration/#camunda-engine-properties

Kind Regards.

3 Likes

thanks @lucas.silva @Niall =)