The Hardest Part of Microservices: Your Data - Christian Posta, Red Hat
Christian Posta, principal architect at Red Hat discusses how to manage your data within a microservices architecture at the 2017 Microservices.com Practitioner Summit.
– Red Hat • Author “Microservices for Java Developers” • Committer/contributor Apache Camel, Apache ActiveMQ, Fabric8.io, Apache Kafka, Debezium.io, et. al. • Worked with large Microservices, web-scale, unicorn company • Blogger, speaker about DevOps, integration, and microservices
into smaller, understandable models • Surround a model and its “context” with an explicit boundary • Implement the model in code or get a new model • Explicitly map between different contexts • Model transactional boundaries as aggregates
one box • Modules/use cases have different read/write characterisBcs • Queries/joins are geOng too complex • Security issues • Lots of conflicBng changes to the model/schema • Need denormalized, opBmized indexing engines • We want to explicitly reduce dependencies on data between our services
• What consistency model do you need, depending on what role you’re playing? • What consistency model are you willing to pay for? • Official score keeper? (Linearizability or RMW) • Umpire? (Linearizability) • Sports writer? (Bounded staleness, Eventual consistency) • Radio updates? (Monotonic read, Bounded staleness) • Statistician (Bounded staleness) • Friends in the pub (Eventual consistency)