What are you looking for?

How to run Camunda on Pivotal Cloud Foundry (PCF)

  • Blog
  • >
  • How to run Camunda on Pivotal Cloud Foundry (PCF)

Camunda is a popular open source workflow engine that’s very lightweight and developer friendly. If you’re developing in Java you can use it embedded e.g. in Spring Boot applications. Otherwise you simply leverage its REST APIs and language clients, so Camunda can also be used in other programming languages. It can be integrated with basically every technology, including e.g. Kafka, RabbitMQ, REST or SOAP.

Cloud Foundry is a popular Cloud runtime environment that can be used in the cloud via e.g. Pivotal Web Services, but also allows you to run a cloud environment on-premise.

In a lot of customer scenarios both tools are used together. This blog describes a tutorial walking you through the various steps to run Camunda on PCF, and all code is available on GitHub.

Approaches and how-tos

There are many ways of running Camunda (I wrote about this in Architecture options to run a workflow engine). But for this article I concentrate on the two recommended default architectures:

camunda on pivotal cloud foundry

  1. Embed Camunda into your Spring Boot application. This setup is only possible if you develop your applications (or microservices) in Java. If you use Spring Boot, this approach is great as Camunda will be integrated using a proper Spring Boot Starter alongside typical Spring Boot best practices. So this is a easy to get-started setup which comes naturally for Spring Boot users.
  2. Run Camunda as service and connect to it via REST API and External Tasks. This is the default approach that works in every stack, so you can use the programming language of your choice. This approach requires you two do two things:
    1. Run Camunda itself as own PCF deployment. This is necessary as there is not yet a managed service providing Camunda in the cloud (but Camunda is currently working on it).
    2. Deploy your own application including the workflow.

I hope this gives you a good starting point for your Camunda on PCF endeavor.

Camunda Optimize

Camunda Optimize is a business analysis tool that can make sense of data in Camunda workflow engines. You can also run Optimize as PCF deployment.

Why not Docker?

In order to run applications on PCF you leverage so called build packs, for Camunda that’s the Java build pack of PCF, available by default. Camunda also provides docker images. While you can run docker images on PCF, it isn’t their recommend way:

“While this [Docker] is a great, easy way to deploy your service on PCF, we do not recommend this as a long-term, production-ready solution. There is really no benefit of running your service in containers on the VMs, and it does have a number of operational (“day 2”) drawbacks:

  • You introduce more software (Docker) which needs to be kept up-to-date, and has the potential for issues, downtime, and security vulnerabilities.
  • You can no longer take advantage of the patching capabilities of PCF for stemcells and application dependencies, such as frameworks and libraries. Instead, you become directly responsible for managing all software that is in the Docker images you deploy.”

Conclusion

It is easy to run Camunda on Cloud Foundry by leveraging the Java build pack. This can be mastered also by non Java people. The step-by-step how-tos should help you get started.

Try All Features of Camunda

Related Content

Wilson Gaitan, director of data governance at Sam's Club/Walmart, tells us how to unlock efficiency and compliance in the world of big data.
At CamundaCon 2024 Berlin, MetaOps discussed how they used data-driven insights to transform operational oversight for the UK General Register Office.
Tim Stawowski spoke at CamundaCon 2024 Berlin about how Wergarantie uses Camunda Optimize to measure process and business KPIs.