FlexRule Server will setup a platform for managing business logic (i.e., rules, decisions, flow, etc.). It exposes this logic as a REST API for execution. It also provides the capability to manage and monitor different parts of its infrastructure as well as your business logic.
Generally, FlexRule Server has two individual processes:
Each of them is responsible for different tasks.
FlexRule Server offers a business logic server which has two main responsibilities:
- Management: Allows the management of logic and nodes
- Execution: Runs the logic models by providing values and returning the results
FlexRule Server is built on top of two different types of nodes to process requests:
- Master Server node
- Execution agents node
These can be installed on one machine, but ideally you will distribute them across your network on different machines for scaling the execution process. When requests come to a Master, it looks into the pool, selects free and healthy agents, and send the execution requests to the agent. Once the agent executes the logic, it returns the result back to the Master and the Master sends the result to the requester.
Master Server has different parts:
- Executing logic
- Managing resources (e.g., Packages, Users, Accounts, Permissions, etc.)
- Monitoring Health (e.g., Database, Master server, agents, etc.)
- Logic Repository
ExecAgent is the processing node that executes the logic. This uses FlexRule Runtime to load and execute logic. You don't necessarily need an Agent node. You can add it later on for scalability purposes.
There are many difference choices of deployment for FlexRule Server, each of which are designed to answer different architectural concerns.
When a simple deployment is required, One Node can be used to deploy a Server with a minimum configuration and set up. This model is the Master only model. In this scenario, the Master itself will take care of both the management and execution of logic.
You only need to install the Master on a machine.
Balancing between the Management and Execution responsibilities of a Server can be implemented by using this deployment strategy. This allows you to split management and execution responsibilities into two Nodes.
You need to install a Master and an Agent. The Agent can be either on the same machine than Master or different one.
Master with Distributed Agents
This deployment strategy enables high-availability scenarios. This mode allows you to create a cluster of processing power for your logic. Which means when a Master receives the execution requests, it will distribute them to Agents for processing.
You need to install the Master and Agents on different machines.
Distributed Masters and Agents
This deployment strategy allows for high-availability and fault-tolerance, which you can build up through multiple clusters of Master-Agents (Master with Distributed Agents strategy) and put them behind a load balancer that routes requests to a particular cluster. If a master of a cluster is done, then your load balancer can route the request to another available cluster.
You need to install multiple Master with Distributed Agents clusters. This strategy requires sharing the Database between Master nodes. By default, each Master node has its own database. To set up a database across all the Master nodes, you need to use the MS-SQL database provider on the Master nodes.