Book Image

WildFly Cookbook

Book Image

WildFly Cookbook

Overview of this book

Table of Contents (23 chapters)
WildFly Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


In this chapter, you will learn how to load balance your WildFly instances. Load balancing is the capability to distribute the workload across multiple nodes, in our case, WildFly nodes. This technique is used for optimizing resources, minimizing the response time, and maximizing the application throughput.

To achieve load balancing, we need a component which fronts our WildFly nodes, and distributes the workload across them. A common pattern of distributing the workload is to forward client requests in a round-robin manner, so that every node serves the same number of requests.

What about the real workload that a request can generate into a node? For example, a long-running request or a request which involves heavy tasks would make the node much busier than the others that are handling just static page requests.

This is not a fair workload distribution! We need something to better calibrate this workload distribution, depending on how busy the nodes really are.

We've already got...