Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL
Help

Chapter 15. Deployment and scaling > Deployment tools and techniques - Pg. 364

364 C HAPTER 15 Deployment and scaling around the world, such as server A in west coast USA and server B in east coast USA . 1 Both frontend servers could dispatch to the bevy of backend servers, which, once again, could feasibly be distributed around the world. This would give you a scenario whereby you'd have near-zero downtime in the event of a failure, either at the ISP level or at the application server level. In the event of a Jetty server going down, HAP roxy would simply route your request to one of the other available nodes, and in the event of a systemic failure at hosting location A, site B would continue service with limited capacity. The two examples shown here represent different ends of the deployment spec- trum and service rather different application types. It should go without saying that there are many, many different ways to set up your environment; the point of illustrat- ing these two configurations is to understand that Lift can scale in any number of ways, right up to servicing massively redundant applications that require high avail- ability. Moreover, Lift also comes with a selection of facilities that can help when pre- paring your codebase for production. The Scala ecosystem similarly has some great tools to assist you. The next section looks at these tools and techniques. 15.4 Deployment tools and techniques Going into production is likely one of the biggest steps your application will ever undertake, and it can be a daunting process. There are often many unexpected chal- lenges that appear from out of the blue, and there are also problems that plague all