Posts

Showing posts with the label Database Design

Camunda + Database Design (History Tables, Optimization, Scaling)

Image
📌 Introduction When working with Camunda , database design plays a critical role in performance, scalability, and maintainability. Many production issues in Camunda projects are not due to BPMN design—but due to poor database planning . 👉 In this blog, we’ll cover: Camunda database architecture History tables & audit data Performance optimization Scaling strategies đź–Ľ️ Camunda Database Architecture Camunda uses a relational database with three main table categories: đź“‚ 1. Runtime Tables ( ACT_RU_* ) Active process instances Running tasks Execution data 👉 Example: ACT_RU_EXECUTION ACT_RU_TASK đź“‚ 2. History Tables ( ACT_HI_* ) Completed processes Audit logs Task history 👉 Example: ACT_HI_PROCINST ACT_HI_TASKINST ACT_HI_ACTINST đź“‚ 3. General Tables ( ACT_GE_* ) Engine metadata Configuration Byte arrays 🔑 Why History Tables Matter History tables are essential for: Audit & compliance Reporting Debugging production issues 👉 But they can grow very fast in production systems. đź–Ľ...