camunda-carbon-reductor
camunda-carbon-reductor copied to clipboard
The Camunda Carbon Reductor allows you to time shift your processes' carbon emissions when energy is clean while still fulfilling the requested SLAs.
🌱Camunda Carbon Reductor
The Camunda Carbon Reductor allows you to time shift your processes' carbon emissions when energy is clean while still fulfilling the requested SLAs.
Technically, it's implemented as a Camunda Connector for Camunda Platform 8 and as an External Task Worker for Camunda Platform 7.
You want to contribute 🌱? Please read the Contribution Guidelines.
Table of Contents
- ✨ Features
- Time Shifting Mode ⏭️
- Measuring Mode 📏
- 🚀 Getting Started
- Camunda 8
- Camunda 7
- 📈 Reporting Carbon Reduction via Camunda Optimize
- 🏗️ Building Blocks
- 📚 Releases
- 📆 Publications
- 📨 Contact
✨Features
The Carbon Reductor Connector consists of an element-template that can be used in the process model that connects to the connector function.
Time Shifting Mode ⏭️
Using the time shifting mode (default) the Carbon Reductor Connector allows you to optimize for lower carbon emissions by moving your process execution into a timeframe with the least amount of carbon possible while still fulfilling SLAs.
The Carbon Reductor Connector defines the following inputs:
- the location where the worker are running (e.g. Germany, UK, France, USA, etc.)
- a milestone (a timestamp used to calculate the duration the process instance has been running)
- a duration for the remainder of the process (the duration the remainder needs at most)
- the maximum duration a process instance can take
- optionally, set a threshold for the minimum amount of grams of CO2 per kilowatt-hour that should be saved
Measuring Mode 📏
Note: This mode only works with the Carbon Aware SDK API at the moment.
Using the measuring mode the Carbon Reductor Connector allows you to measure the emissions in gCO2e/KWh at execution time and reports as well the emissions at the optimal time while still fulfilling your SLAs.
The same input as in the Time Shifting Mode ⏭️ is required.
🚀Getting Started
We provide the Carbon Reductor for Camunda Platform 7 and 8:
Camunda 8
To start the Camunda 8 Connector have a look at the specific README.
Camunda 7
To start the Camunda 7 External Task Worker have a look at the specific README.
📈Reporting Carbon Reduction via Camunda Optimize
Since Camunda Carbon Reductor stores the carbon savings as process variables, we have the ability to visualize our successes in Camunda Optimize.
For the CarbonHack22 we visualized the results for out example process and it looks like the following:
The exported Dashboard Definition could be found here.
🏗Building Blocks
Element | Description |
---|---|
Carbon Reductor Core | Core module which calculates the possible time shifting based on data it fetches from the external systems. |
Carbon Aware API | Custom Client to connect to the Carbon Aware SDK. |
Carbon Aware Computing API | Custom Client to connect to the Carbon Aware Computing API. |
Camunda Carbon Reductor C8 | Camunda 8 Job Worker. |
Camunda Carbon Reductor C7 | Camunda 7 External Task Worker. |
📚Releases
The list of releases contains a detailed changelog.
We use Semantic Versioning.
The following compatibility matrix shows the officially supported Camunda versions for each release. Other combinations might also work but have not been tested.
Release | Camunda Platform 8 | Camunda Platform 7 |
---|---|---|
2.1.1 | 8.4.0 | 7.20.0 |
2.1.2 | 8.5.0 | 7.21.0 |
2.1.3 | 8.5.0 | 7.21.0 |
Click to see older releases
Release | Camunda Platform 8 | Camunda Platform 7 |
---|---|---|
1.0.0 | 8.1.0 | 7.18.0 |
1.1.0 | 8.2.0 | 7.19.0 |
2.0.0 | 8.2.3 | 7.19.0 |
2.0.1 | 8.2.3 | 7.19.0 |
2.0.2 | 8.2.3 | 7.19.0 |
2.0.3 | 8.3.0 | 7.19.0 |
2.1.0 | 8.3.0 | 7.20.0 |
2.1.1 | 8.4.0 | 7.20.0 |
2.1.2 | 8.5.0 | 7.21.0 |
2.1.3 | 8.5.0 | 7.21.0 |
Download of Releases:
📆Publications
- 2023-10: Process Pattern.book The Camunda Carbon Reductor as Case Study for the Shift Workload Workflow Pattern.
- 2023-09: Camunda Marketplace
- 2023-07: The Camunda 8 Connector for Carbon-Aware Process Execution
- 2023-02: Hehnle, Philipp; Behrendt, Maximilian; Weinbrecht, Luc (20.2023): Digitale Geschäftsprozesse klimabewusst ausführen. In: Uwe Friedrichsen (Hg.): IT Spektrum. Green IT, S. 16–19.
- 2022-11: Carbon Reduced Business Process Execution
2 Minute pitch on YouTube as part of the #CarbonHack22 hackathon - 2022-11: Project Pitch
Project pitch on Taikai as part of the #CarbonHack22 hackathon
If you are interested in our work and want to get to know more, feel free to reach out to us.
📨Contact
If you have any questions or ideas feel free to start a discussion or contact us via mail.
This open source project is being developed by envite consulting GmbH.