Post is pinned.Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has attachment
https://github.com/viniciusccarvalho/schema-evolution-samples

Spring cloud stream schema evolution samples

The goal of this tutorial is to discuss approaches to achieve resilient data microservices (or data streams) that can cope with the evolution of the data that flows through it.

Our intention is to demonstrate how could we apply those lessons using Spring Cloud Stream to create robust evolutionary data microservices.

Our proposed solution is to use a combination of a Schema Repository and specific serialization frameworks that can support different levels of schema evolution.

Schema evolution recap

"Schema evolution refers to the problem of evolving a database schema to adapt it to a change in the modeled reality" Wikipedia

There’s three main patterns for schema evolution: Backward compatibility, forward compatibility, full compatibility

Backward Compatibility

In this case, a reader using a newer schema version should be capable of reading data written with an older version.

Forward Compatibility

On this scenario, a data service written using an older schema should be able to read data from producers that are using a newer version

Full Compatibility

We can say that schemas are fully compatible if given a set of Schemas { v1, v2,…​,vn}, any given version can read from any other combination on the set.

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has attachment
Wait while more posts are being loaded