Case study · Caching · FinOps

Switching cache serialization to Protobuf

A reusable Spring Boot annotation moved cached objects from Java serialization to Protobuf 3 with zero downtime and over $1M in yearly savings.

Result: Zero downtime; over $1M a year saved.

Context

Dozens of Java services cached objects in a shared cache tier.

Problem

Default Java serialization made cached objects large, which inflated cache infrastructure costs across many services.

Approach

Built a reusable Spring Boot annotation so services could switch to Protobuf 3 one at a time, reading both formats during the transition.

Result

  • Zero downtime through the migration.
  • Over $1M in yearly infrastructure savings.

More case studies