← SAP Clean Core Engineering Hub
GUIDE #67 Open Kyma Architect →
ARCHITECTURAL BLUEPRINT #67

SAP BTP Kyma Runtime, Microservices & Serverless Architecture Guide

Architect side-by-side Clean Core extensions using SAP BTP Kyma: containerized microservices, Istio Service Mesh, event-driven serverless functions, and zero-trust security.

📖 Production BTP Architecture Manual

Deep architectural blueprints for Kyma, Cloud Foundry, AI Core, and Event Mesh in The SAP BTP & Business AI Architecture Companion.

Get Enterprise Suite (-80% Off: €9.80) →

1. Kyma vs Cloud Foundry: Architectural Decision Framework

When developing side-by-side extensions under SAP Clean Core, architects must decide between SAP BTP Cloud Foundry and SAP BTP Kyma Runtime (Kubernetes):

2. Anatomy of Kyma Serverless Functions

Kyma Serverless allows developers to write pure business logic without managing container build pipelines. The Kyma Serverless Controller builds and containerizes code directly inside the cluster:

apiVersion: serverless.kyma-project.io/v1alpha2
kind: Function
metadata:
  name: order-validation-service
  namespace: prod
spec:
  runtime: nodejs18
  source:
    inline:
      source: |
        module.exports = {
          main: async function(event, context) {
            console.log("Validating payload:", event.data);
            return { valid: true };
          }
        }
      dependencies: |
        {
          "dependencies": {
            "@sap/cds": "^7.0.0"
          }
        }

3. Zero-Trust Gateway Security with APIRules & Istio

Kyma exposes workloads securely via the APIRule custom resource. Rather than implementing JWT verification inside application code, the Istio Envoy proxy validates signatures against SAP Cloud Identity Services (IAS) or XSUAA:

apiVersion: gateway.kyma-project.io/v1beta1
kind: APIRule
metadata:
  name: order-service-api
  namespace: prod
spec:
  host: orders.mycorp-kyma.ondemand.com
  service:
    name: order-validation-service
    port: 8080
  gateway: kyma-gateway/kyma-gateway
  rules:
    - path: /.*
      methods: ["GET", "POST"]
      accessStrategies:
        - handler: jwt
          config:
            authentications:
              - issuer: https://mycorp.accounts.ondemand.com
                jwksUri: https://mycorp.accounts.ondemand.com/oauth2/certs

4. Consuming On-Premise S/4HANA via BTP Connectivity

Kyma workloads communicate with private S/4HANA instances through the SAP BTP Service Binding Operator. Secrets containing OAuth2 client credentials and proxy URLs are automatically mounted:

Interactive Generator: Use Tool #80: SAP BTP Kyma & Cloud-Native Runtime Architect to configure and export production Kubernetes manifests and Istio APIRules.

Master Modern SAP Cloud Architectures

Get definitive reference manuals for Cloud Foundry, Kyma, Clean Core, and ABAP Cloud with The SAP Enterprise Architecture Suite.

Get Enterprise Suite (-80% Off) → View on Amazon ($19.99) →