Wiki: Panel: Successfully Working with Microservices Architectures
For agents: Markdown version · Wiki index · Explore
- Speaker:
- Event: Reversim Summit 2020
- Video: https://www.youtube.com/watch?v=3DzAqfUcp-4
- Transcript: /transcripts/2020/04-3DzAqfUcp-4.md
- Language: Hebrew · Type: panel · Level: intermediate
- Topics: Architecture, Distributed Systems, Software Engineering, Microservices
Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.
Summary
This panel discussion explores the practical challenges and best practices of working with microservices architectures. The participants discuss domain boundaries, communication patterns, refactoring legacy monoliths, and the reality of software engineering. The speakers argue that microservices are not a silver bullet and emphasize the importance of modularity, strong semantics, and team communication. Ultimately, the audience learns how to design distributed systems effectively and when a modular monolith might actually be a better choice.
Key points
- 2:29 Microservices help scale organizations by allowing teams to independently deploy code without waiting for others.
- 3:37 Bounded contexts and clear domain boundaries are essential, and a microservice should ideally be owned by a single team.
- 11:13 Communication between microservices should generally be asynchronous using events, while orchestration should be kept internal to services.
- 17:41 Change Data Capture (CDC) can be used to reliably publish domain events from transactional databases without overcomplicating business flows.
- 22:01 When breaking down a monolith, teams must have clear business motivations and management backing, avoiding refactoring just for the sake of it.
- 28:52 Migrating a legacy system can be safely achieved using a dual-write pattern and data comparison to gradually shift traffic to the new service.
- 35:07 Software engineering is fundamentally about communication between developers, product managers, and customers rather than just writing code.
- 39:30 Starting a new project as a well-structured modular monolith is often better than jumping straight into microservices.
Takeaways
- Design microservices around bounded contexts where each service maps clearly to a specific business domain.
- Favor choreography and asynchronous events for inter-service communication to maintain loose coupling.
- Consider starting new projects as a modular monolith before prematurely introducing distributed microservices.
- Ensure that architectural refactoring is tied to real business goals and backed by proper automated testing.
Questions this talk answers
- How do you define and maintain proper boundaries between microservices over time?
- Should inter-service communication rely on choreography or orchestration?
- How do you safely migrate a large legacy monolith to microservices without breaking production?
Technologies
Kafka, S3, Elasticsearch, BigQuery
Tags
architecture, distributed systems, domain driven design, microservices, refactoring, scalability