Physical Architecture patterns for OFBiz
Note | ||
---|---|---|
| ||
This document is still being worked upon. Contributions: Welcome! |
System Requirements
Understanding the OFBiz Widget Toolkit
There are many ways to run a tiered application such that is is scalable (where "scalable" means that it can be set up to run more parallel sessions for users, digest more service calls etc...).
Scalability in tiered applications means, e.g.
- a single web server directing traffic to multiple application servers
- many servers talking to a single database
- servers talking to many databases
- etc.
The need for scalability is not only driven by sheer capacity demand (mostly going along with requests to use low cost hardware to run services). It is very much linked to other non-functional requirements such as (high-) availability and maintainability.
This is the reason why understanding the various architecture patterns which are supported by a given application stack is crucial to deliver the right solution for a given business demand aka. requirement. This HOWTO guide talks about various options to "lay out" the physical server landscape in order to achieve certain non-functional requirements.
Most of the examples are taken from various threads on the community mailing list and replicated here in an abstract way.
Single instance of OFBiz running with public IP
Wiki Markup |
---|
\[standard case, describe pros cons here\] |
Apache "in front of" OFBiz single instance (no load balancing)
Wiki Markup |
---|
\[describe pros and cons\] |
...
Load balance across multiple instances of OFBiz
The below is taken from mails by Brett Palmer on user@ofbiz.apache.org
...
For maximum scalability you would put 1 instance of ofbiz on a single
machine and load balance between these machines. We are using Amazon's EC2
servers so it is easy for us to shutdown to a single server at night and
then start up several server during the days when the application is busy.
=== /mail2 ===
Multiple OFBiz instances talking to the same database
Clustering several OFBiz instances
Clustering is a feature since Tomcat 5.5 and since OFBiz uses even Tomcat 6.0, the on board clustering with catalina has improved even more.
...
OFBIZ_HOME/framework/base/config/ofbiz-containers.xml
Multitenancy
Multitenancy Basic Architecture
Multitenancy for Automated self service