---
title: "How a shared merchant data service can degrade gracefully"
description: "Grab's merchant data service suffered a cascading failure when cache read timeouts fell back to the database, retries piled on, and availability collapsed."
url: "https://swe.quest/articles/how-a-shared-merchant-data-service-can-degrade-gracefully-8de99a9e03ed71ec"
canonical: "https://engineering.grab.com/shared-merchant-data-service"
source: "Grab Engineering"
published: "2026-11-18"
difficulty: "medium"
kind: "Case study"
reading_minutes: 10
tags: ["resilience","caching","system-design","sre","databases"]
---

# How a shared merchant data service can degrade gracefully

A post on [Grab Engineering](https://swe.quest/sources/grab.md), published 2026-11-18, 10 min read, Case study. Original: [https://engineering.grab.com/shared-merchant-data-service](https://engineering.grab.com/shared-merchant-data-service)

## Summary

Grab's merchant data service suffered a cascading failure when cache read timeouts fell back to the database, retries piled on, and availability collapsed. The redesign rests on one rule: a fallback is only safe if its work is bounded. Requests get a priority class derived from authentication. A weighted, cross-instance token budget sits in front of the database on the fallback path, and deferrable traffic is rejected outright on cache errors. Per-class connection pools and circuit breakers act as bulkheads, scoped runtime throttles give responders control without deploys, and an opt-in SDK cache serves stale values within explicit freshness windows.

Written by swe.quest, not by the author.

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

## Topics

- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [Caching](https://swe.quest/tags/caching.md) (Backend & APIs)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [SRE](https://swe.quest/tags/sre.md) (Reliability & operations)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- cache-aside pattern ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))
- circuit breakers
- rate limiting

## Keywords

Grab, merchant data service, cache-aside, bulkheads, admission control, circuit breakers

## Related posts

- [10 Tips for Building Resilient Payment Systems](https://swe.quest/articles/10-tips-for-building-resilient-payment-systems-94c9ade99576742c.md): Shopify Engineering · 2022-07-28 · Medium · 13 min read · Payments & fintech, Resilience, Observability, Incidents & postmortems, Ruby
  Ten lessons from Shopify's payment infrastructure for keeping payment systems reliable at scale.
- [Failure is inevitable: Learning from a large outage, and building for reliability in depth at Datadog](https://swe.quest/articles/failure-is-inevitable-learning-from-a-large-outage-and-building-for-reliability-917bd748ed64f6fb.md): Datadog Engineering · 2025-10-15 · Medium · 12 min read · Resilience, Incidents & postmortems, SRE, Kubernetes, Chaos engineering
  A March 2023 unsupervised global update knocked out connectivity to 50–60% of Datadog's Kubernetes nodes, yet the platform appeared fully down because services were designed to stop rather than show partial data.
- [Slack’s Incident on 2-22-22](https://swe.quest/articles/slack-s-incident-on-2-22-22-7a35cde32cfb5fd8.md): Slack Engineering · 2022-04-26 · Medium · 12 min read · Incidents & postmortems, Caching, Resilience, MySQL, Distributed systems
  A Consul agent rolling restart caused Mcrib, Slack's memcached control plane, to replace and flush cache nodes, dropping hit rates during peak traffic.
- [More Reliable Connections to Your Repls](https://swe.quest/articles/more-reliable-connections-to-your-repls-07578bd14f5efb1d.md): Replit · 2024-03-18 · Medium · 5 min read · Load balancing, System design, Resilience, SRE, Real-time systems
  Replit split reverse WebSocket proxying out of Conman, its container manager on GCE VMs, into a dedicated service called Eval that sits between clients and Conman VMs.
- [How we scaled fast, reliable configuration distribution to thousands of workload containers](https://swe.quest/articles/how-we-scaled-fast-reliable-configuration-distribution-to-thousands-of-workload-e29683144db0f208.md): Datadog Engineering · 2025-06-17 · Medium · 13 min read · Configuration management, Distributed systems, Resilience, Multi-tenancy, Caching
  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.

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)
