---
title: "Third Time's the Charm: Deprecating KAWS"
description: "Artsy retired KAWS, a standalone Node.js/Mongo/TypeGraphQL service that stored artwork \"collections\" as Elasticsearch queries, and folded it into its main Rails API, Gravity."
url: "https://swe.quest/articles/third-time-s-the-charm-deprecating-kaws-d0552afdae392f12"
canonical: "https://artsy.github.io/blog/2022/05/09/deprecating-kaws/"
source: "Artsy Engineering"
published: "2022-05-09"
difficulty: "medium"
kind: "Case study"
reading_minutes: 11
tags: ["refactoring","graphql","microservices","deployment"]
---

# Third Time's the Charm: Deprecating KAWS

A post on [Artsy Engineering](https://swe.quest/sources/artsy.md), published 2022-05-09, 11 min read, Case study. Original: [https://artsy.github.io/blog/2022/05/09/deprecating-kaws/](https://artsy.github.io/blog/2022/05/09/deprecating-kaws/)

## Summary

Artsy retired KAWS, a standalone Node.js/Mongo/TypeGraphQL service that stored artwork "collections" as Elasticsearch queries, and folded it into its main Rails API, Gravity. KAWS was retired for its idiosyncratic stack, high lottery factor, extra request hops through Metaphysics, and spreadsheet-plus-Jenkins admin workflow. The deprecation succeeded on the third attempt because it was tied to a business need and tightly scoped to 100% GraphQL schema compatibility for used fields. Lessons include dropping a premature artwork-collection join model whose Sidekiq jobs choked on collections with hundreds of thousands of works, and discovering that env-var feature flags on a GraphQL server leak schema changes to clients when CI pulls the schema from staging, blocking deploys.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Refactoring & migrations](https://swe.quest/tags/refactoring.md) (Engineering practices)
- [GraphQL](https://swe.quest/tags/graphql.md) (Backend & APIs)
- [Microservices](https://swe.quest/tags/microservices.md) (Backend & APIs)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)

## Prerequisites

- GraphQL schemas ([easy posts on GraphQL](https://swe.quest/tags/graphql.md?difficulty=easy))
- Elasticsearch queries ([easy posts on Search](https://swe.quest/tags/search.md?difficulty=easy))
- feature flags ([easy posts on Deployment](https://swe.quest/tags/deployment.md?difficulty=easy))

## Keywords

KAWS, Gravity, Metaphysics, Elasticsearch, TypeGraphQL, TypeORM, Sidekiq, Artsy

## Related posts

- [How we use GraphQL at Europe's largest fashion e-commerce company](https://swe.quest/articles/how-we-use-graphql-at-europe-s-largest-fashion-e-commerce-company-98c53d6b8b858147.md): Zalando Engineering · 2021-03-03 · Easy · 6 min read · GraphQL, API design, Microservices, E-commerce, Resilience
  Zalando replaced a sprawl of per-page and per-platform Backend-for-Frontend services with a single unified GraphQL API owned via a shared monorepo across 12+ domain teams.
- [Migrating from Apollo Tooling to GraphQL Codegen at Yelp](https://swe.quest/articles/migrating-from-apollo-tooling-to-graphql-codegen-at-yelp-732b107d437979cc.md): Yelp Engineering · 2026-07-16 · Medium · 11 min read · GraphQL, TypeScript, Build systems, Refactoring & migrations, Open source
  Yelp replaced the deprecated apollo-tooling codegen with GraphQL Codegen across a 500+ package React/TypeScript monorepo without requiring developers to change imports or queries.
- [GraphQL persisted queries and Schema stability](https://swe.quest/articles/graphql-persisted-queries-and-schema-stability-a96dada14e0377f0.md): Zalando Engineering · 2022-02-16 · Medium · 6 min read · GraphQL, API design, Schema migrations, Deployment
  Zalando disables arbitrary GraphQL queries in production and accepts only query IDs that were persisted at build time, where an ID is a hash of the normalized query.
- [Evolving the Backend Storage for Platform Metrics](https://swe.quest/articles/evolving-the-backend-storage-for-platform-metrics-0fb82a7939c98396.md): Heroku Engineering · 2024-05-09 · Medium · 6 min read · Databases, Distributed databases, Observability, Cloud platforms, Schema migrations
  Heroku migrated the time-series store behind MetaaS, its internal metrics service, from self-managed Apache Cassandra to AWS DynamoDB without user-visible impact.
- [100x Faster: GraphQL Hive migration from Elasticsearch to ClickHouse](https://swe.quest/articles/100x-faster-graphql-hive-migration-from-elasticsearch-to-clickhouse-57650bfdbf95d1a8.md): ClickHouse · 2022-11-03 · Easy · 4 min read · Analytics & OLAP, Observability, GraphQL, Databases, Performance engineering
  GraphQL Hive replaced Elasticsearch with ClickHouse for storing per-request GraphQL monitoring data (consumer, requested fields, latency, request body) after query latency degraded with data growth and one large tenant slowed queries for smaller ones.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
