上QQ阅读APP看书,第一时间看更新
Service Grid
What if we get the ability to deploy our service to a MySql/MS SQL or Oracle database? The service will collocate with the data and process DB-related computational requests way faster than the traditional deployment model. Service grid is a nice concept where you can deploy a service to an Apache Ignite cluster.
It offers various operating modes:
- Microservice-type multiple service deployment
- Singleton deployment: Node singleton, cluster singleton, and so on
- High availability: If one node goes down, another node will process the requests
- Client deployment and node startup deployment
- Anytime service removal
The following diagram represents a cluster-singleton service grid deployment. Only one node is active in the grid cluster:
Service grid and compute grid look similar but in compute grid, a computational closure is sent to a node and it needs to have peer class loading enabled, whereas for service grid, the service and its dependencies need to be present in all the cluster node's classpath.