Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Klarna Engineering 9 min read Case study mediumAdept

How I stopped worrying and learned to love Cloud Inventory

Klarna's Cloud Inventory unifies assets from more than a thousand AWS accounts and 20+ internal sources of truth into a single graph database (JupiterOne plus custom S3-based ETL sync jobs), linked through a mandatory SystemID tag that establishes ownership. On top of the graph, "target specifications" are Markdown-defined, scheduled graph queries that flag misconfigured assets, such as non-Multi-AZ RDS instances or stale snapshots, and give owners fix instructions. More than 100 controls now roll out in minutes instead of weeks. One snapshot-cleanup spec cut about 1,500 stale snapshots to about 500, saving €10k–€20k a month. Key lessons are clear data ownership, a disciplined graph data model, and showing value early so data-source owners ask to integrate.

Related posts

  • How Lansweeper scaled IT, OT, and IoT insights with ClickHouse Cloud

    ClickHouse easyNovice

    Lansweeper moved its asset-analytics layer from MongoDB plus Elasticsearch to self-hosted ClickHouse and then to ClickHouse Cloud as it grew to 50M assets, 1.4B software records and 5.5B vulnerabilities. Elasticsearch had reached 17% of cloud spend and struggled with frequent large-document updates. ClickHouse on Kubernetes handled updates with an insert-only model: each change or delete becomes a new row, and the latest version is resolved by sort key and timestamp, with data sorted by client and asset key and partitioned by date. ZooKeeper instability drove the move to ClickHouse Cloud, which required only new Kafka consumer credentials, and S3-backed storage cut costs to about 30% of the OpenSearch bill while handling 3x more assets.

  • Data Inventory

    Wise Engineering mediumAdept

    Wise's Data Governance team built an in-house Data Inventory that catalogs data assets across heterogeneous systems (MariaDB, PostgreSQL, S3, Kafka) to meet ISO 27001:2022 and security controls. The pipeline discovers data systems as databases are provisioned, registers assets under human-readable URI-style IDs whose granularity rises with sensitivity, and attributes ownership from team metadata, with a producer/consumer fallback for the remaining cases. It then extracts schemas via information_schema and system catalogs and collects sensitivity classification through a UI backed by layered nudges. Off-the-shelf catalogs like DataHub, OpenMetadata and BigID were rejected because they required looser security controls, and the team favoured shipping a solution for 80% of cases over analysis paralysis.

  • Tale of 'metadpata': the revenge of the supertools

    Zalando Engineering mediumAdept

    A one-character typo turning the "metadata" key into "metadpata" in a YAML config caused Zalando's AWS account-management tool to treat the configuration as "no accounts" and then decommission all accounts. It deleted Route 53 hosted zones and took the shop offline for hours during Cyber Week preparation. The postmortem names such large-scale automation "supertools" and describes the fixes. These include a one-week "scream test" before account deletion using Network ACLs and DNS delegation removal, and manual deletion of low-savings resources. Changes now go through jsonschema and cfn-lint validation in pre-commit hooks and CI, a GitHub bot that requires owner approvals, CloudFormation ChangeSet previews in PRs, and phased rollout through release channels of account categories.

  • How we scaled fast, reliable configuration distribution to thousands of workload containers

    Datadog Engineering mediumAdept

    Datadog replaced on-demand per-tenant config loading (database reads plus Kafka cache-invalidation messages) with a context-publisher that snapshots all tenants' configuration into RocksDB blobs in cloud storage and streams individual updates over Kafka. Because context data is only megabytes in total and changes thousands of times per day, every workload container can hold a full local replica. Containers download the blob at startup, apply streamed updates, and refresh the snapshot roughly every 10 minutes, so they keep working through a full outage of the central database. The design deliberately puts a tiny, externally unreachable service in charge and avoids bimodal fallback paths that would go untested and could overload the database.

  • Building ClickHouse BYOC (Bring Your Own Cloud) on AWS

    ClickHouse mediumAdept

    ClickHouse BYOC on AWS splits a ClickHouse-hosted management plane from a data plane EKS cluster in the customer's VPC, provisioned automatically with CloudFormation and Crossplane. Support access is approved, audited, time-bound and routed through Tailscale. Engineers authenticate with temporary certificates tied to a ClickHouse user profile that can read only system tables such as query_log, never customer data. Custom Profiles with node-group labels and node selectors replaced the default scheduler plus cluster autoscaler, which had wasted resources because of DaemonSet overhead and poor scale-in behaviour on m7gd node pools. Customers choose maintenance windows for upgrades, and ClickHouse handles EKS version maintenance.

The quest for software engineering knowledge.

Look:
Layout: