Posts

Showing posts with the label Scaling

Java + Kubernetes (Deployment, Scaling Basics)

Image
  Introduction Running Java applications on Kubernetes (K8s) enables automated deployment, scaling, and management of containerized workloads. With Java + Spring Boot + Kubernetes , you can build cloud-native, scalable systems ready for production. In this blog, you’ll learn: How to deploy Java apps on Kubernetes Core Kubernetes components (Deployment, Service) Scaling basics (manual + auto scaling) Best practices for production đź§  Kubernetes Architecture for Java Apps 🔹 Key Components: Pod → Smallest unit (runs your Java container) Deployment → Manages pods lifecycle Service → Exposes application Cluster → Group of nodes 👉 Kubernetes manages applications declaratively using YAML manifests. ⚙️ Step 1: Containerize Java Application Before deploying, package your Java app as a Docker image. 🔹 Build JAR: mvn clean package 🔹 Dockerfile: FROM openjdk:21-jdk-slim COPY target/app.jar app.jar ENTRYPOINT [ "java" , "-jar" , "app.jar" ] 👉 Kubernetes r...

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. đź–Ľ...