apache-ignite
28 строк · 1.7 Кб
1// Licensed to the Apache Software Foundation (ASF) under one or more
2// contributor license agreements. See the NOTICE file distributed with
3// this work for additional information regarding copyright ownership.
4// The ASF licenses this file to You under the Apache License, Version 2.0
5// (the "License"); you may not use this file except in compliance with
6// the License. You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15Partition awareness allows the thin client to send query requests directly to the node that owns the queried data.
16
17Without partition awareness, an application that is connected to the cluster via a thin client executes all queries and operations via a single server node that acts as a proxy for the incoming requests.
18These operations are then re-routed to the node that stores the data that is being requested.
19This results in a bottleneck that could prevent the application from scaling linearly.
20
21image::images/partitionawareness01.png[Without Partition Awareness]
22
23Notice how queries must pass through the proxy server node, where they are routed to the correct node.
24
25With partition awareness in place, the thin client can directly route queries and operations to the primary nodes that own the data required for the queries.
26This eliminates the bottleneck, allowing the application to scale more easily.
27
28image::images/partitionawareness02.png[With Partition Awareness]
29
30
31
32
33