Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 1.13 KB

File metadata and controls

24 lines (15 loc) · 1.13 KB

Database Migration Guide: v0.3 to v1.0

The A2A SDK v1.0 introduces significant updates to the database persistence layer, including a new schema for tracking task ownership and protocol versions. This guide provides the necessary steps to migrate your database from v0.3 to the v1.0 persistence model without data loss.


⚡ Choose Your Migration Strategy

Depending on your application's availability requirements, choose one of the following paths:

Strategy Downtime Complexity Best For
Simple Migration Short (Restart) Low Single-instance apps, non-critical services.
Zero Downtime Migration None Medium Multi-instance, high-availability production environments.

🏗️ Technical Overview

The v1.0 database migration involves:

  1. Schema Updates: Adding protocol_version, owner, and last_updated columns to the tasks and push_notification_configs tables.
  2. Storage Model: Transitioning from Pydantic-based JSON to Protobuf-based JSON serialization for better interoperability and performance.