-
Book Overview & Buying
-
Table Of Contents
RabbitMQ Cookbook
When developing a small site, usually the application server directly executes the query to a simple relational database and as a pattern, it is certainly very fast and easy to build. When the site grows, this pattern will show its scalability problems, especially when the server has to perform many operations to the query data before reporting back the result set that is to be presented to the end users.
Another problem is the system upgrade; each little update requires the application server to be stopped and restarted.
In this example, we are going to show how to use a message queue system to scale a web application. We will create separate modules with different responsibilities linked to each other with RabbitMQ.
The pros with respect to a traditional web application pattern (where there are only two modules: a web server and a database server connected to each other directly) are as follows:
The communication is asynchronous
Each module doesn...
Change the font size
Change margin width
Change background colour