File tree 3 files changed +29
-3
lines changed
3 files changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,11 @@ If you use this code in another project don't forget to add `cartridge-driver` d
43
43
</dependency >
44
44
```
45
45
## Advanced usage
46
- * [ Proxy methods] ( docs/ProxyTarantoolClient.md )
47
- Connecting to routers with crud library. It proxies space interface's methods to crud methods.
46
+ * [ Using CRUD stored procedures] ( docs/ProxyTarantoolClient.md )
47
+ Connecting to routers with [ tarantool/crud] ( https://github.com/tarantool/crud ) library.
48
+ It proxies space interface's methods to CRUD methods.
49
+ * [ Connecting to multiple instances] ( docs/MultiInstanceConnecting.md )
50
+ Connecting to multiple Tarantool instances.
48
51
* [ Retrying] ( docs/RetryingTarantoolClient.md )
49
52
Retrying transient cluster failures.
50
53
* [ TarantoolTuple usage] ( docs/TarantoolTupleUsage.md )
Original file line number Diff line number Diff line change
1
+ [ Main page] ( ../README.md )
2
+
3
+ # Connecting to multiple Tarantool instances
4
+
5
+ This section shows examples of how to connect to multiple [ Cartridge] ( https://github.com/tarantool/cartridge ) routers.
6
+ We recommend to use balancer in production applications rather than leaving this task to the connector.
7
+
8
+ ## Setting addresses manually
9
+
10
+ Example of TarantoolClient set up with connecting to multiple routers
11
+ https://github.com/tarantool/cartridge-java/blob/b2d504cf26d431d2a80fa21b5d475d8f89a5181f/src/test/java/io/tarantool/driver/integration/ReconnectIT.java#L291-L301
12
+ https://github.com/tarantool/cartridge-java/blob/b2d504cf26d431d2a80fa21b5d475d8f89a5181f/src/test/java/io/tarantool/driver/integration/ReconnectIT.java#L315-L321
13
+
14
+ ## Setting addresses with address provider
15
+
16
+ Example of TarantoolClient set up with address provider
17
+ You may use the provided code as a reference for your own implementation
18
+ https://github.com/tarantool/cartridge-java/blob/b2d504cf26d431d2a80fa21b5d475d8f89a5181f/src/test/java/io/tarantool/driver/integration/ProxyTarantoolClientWithAddressProviderExampleIT.java#L75-L82
19
+ Example of TarantoolClusterAddressProvider setup
20
+ https://github.com/tarantool/cartridge-java/blob/b2d504cf26d431d2a80fa21b5d475d8f89a5181f/src/test/java/io/tarantool/driver/integration/ProxyTarantoolClientWithAddressProviderExampleIT.java#L43-L68
21
+ Do not forget to set tarantool function witch will return addresses
22
+ The function must be global, so that it can be called from the connector
23
+ https://github.com/tarantool/cartridge-java/blob/b2d504cf26d431d2a80fa21b5d475d8f89a5181f/src/test/resources/cartridge/app/roles/custom.lua#L3-L30
Original file line number Diff line number Diff line change 1
1
[ Main page] ( ../README.md )
2
2
3
- # Proxy Tarantool client
3
+ # Using CRUD stored procedures
4
4
5
5
This section shows the necessary settings for connecting to instances with a user-defined CRUD API exposed as Lua
6
6
stored functions or Cartridge roles implementing the API similar to the one of [ tarantool/crud] ( https://github.com/tarantool/crud ) .
You can’t perform that action at this time.
0 commit comments