Wiki: Scaling Extending and Expanding your application through messaging
For agents: Markdown version · Wiki index · Explore
- Speaker: Avi Tzurel
- Event: Reversim Summit 2014
- Video: https://www.youtube.com/watch?v=VPaKFBQxIBI
- Transcript: /transcripts/2014/12-VPaKFBQxIBI.md
- Language: Hebrew and English · Type: talk · Level: intermediate
- Topics: Distributed Systems, Architecture, Microservices, Scalability
Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.
Summary
The speaker discusses how to scale, extend, and expand monolithic web applications by breaking them down using a messaging queue architecture. The presentation highlights the problems with bloated monolithic applications, such as slow deployment and testing times, and proposes migrating business logic into small, independent microservices that communicate via events. Attendees learn how to implement publish-subscribe patterns, handle asynchronous tasks across different programming languages, and address architectural challenges like distributed tracing and database synchronization.
Key points
- 0:07 The speaker introduces the topic of scaling and expanding web applications using messaging and breaking down monoliths.
- 1:16 A practical example of a user writing a review is used to illustrate how much background logic is typically crammed into a monolithic app.
- 5:41 Monolithic applications suffer from severe symptoms like slow startup times, bloated dependency files, and extremely slow test suites.
- 11:59 The proposed architecture separates the main web application from specialized mini-apps by using asynchronous events and independent codebases.
- 16:01 Different messaging patterns such as basic queues, work queues, exchanges, and topic-based routing are explained.
- 23:58 The speaker addresses the danger of infinite event loops and how payload filtering prevents cascading triggers.
- 36:54 Testing and maintaining compatibility across distributed services require monitoring pipelines and robust logging rather than a single integration test suite.
Takeaways
- Deconstruct large monolithic applications into smaller, single-responsibility services that communicate asynchronously through messaging queues.
- Use topic-based routing to allow microservices to selectively listen for and react to specific business events.
- Implement monitoring tools to track event flows and detect failures across a distributed system pipeline.
Questions this talk answers
- How do you prevent infinite loops when microservices publish events back to the message broker?
- What is the best way to handle integration testing when an application is split into multiple independent services?
- When should an organization transition from a monolithic codebase to a messaging-based microservices architecture?
Technologies
Ruby, Rails, Python, Django, Java, RabbitMQ, Kafka, MySQL, MongoDB, Redis, Memcached, CouchDB, DynamoDB
Tags
architecture, async, messaging, microservices, monolith, rabbitmq, scaling