2222
2323# Apache IoTDB
2424
25- Apache IoTDB (Database for Internet of Things) is an IoT native database with high performance for
26- data management and analysis, deployable on the edge and the cloud. Due to its light-weight
27- architecture, high performance and rich feature set together with its deep integration with
28- Apache Hadoop, Spark and Flink, Apache IoTDB can meet the requirements of massive data storage,
25+ Apache IoTDB (Database for Internet of Things) is an IoT native database with high performance for
26+ data management and analysis, deployable on the edge and the cloud. Due to its light-weight
27+ architecture, high performance and rich feature set together with its deep integration with
28+ Apache Hadoop, Spark and Flink, Apache IoTDB can meet the requirements of massive data storage,
2929high-speed data ingestion and complex data analysis in the IoT industrial fields.
3030
3131# Apache IoTDB Client for Go
@@ -41,8 +41,8 @@ high-speed data ingestion and complex data analysis in the IoT industrial fields
4141
4242This is the GoLang client of Apache IoTDB.
4343
44- Apache IoTDB website: https://iotdb.apache.org
45- Apache IoTDB Github: https://github.com/apache/iotdb
44+ Apache IoTDB website: < https://iotdb.apache.org >
45+ Apache IoTDB GitHub: < https://github.com/apache/iotdb >
4646
4747## Prerequisites
4848
@@ -80,11 +80,13 @@ go run session_example.go
8080```
8181
8282## How to Use the SessionPool
83+
8384SessionPool is a wrapper of a Session Set. Using SessionPool, the user do not need to consider how to reuse a session connection.
8485If there is no available connections and the pool reaches its max size, the all methods will hang until there is a available connection.
8586The PutBack method must be called after use
8687
8788### New sessionPool
89+
8890standalone
8991
9092``` golang
@@ -98,15 +100,16 @@ config := &client.PoolConfig{
98100sessionPool = client.NewSessionPool (config, 3 , 60000 , 60000 , false )
99101
100102```
103+
101104cluster or doubleLive
102105
103106``` golang
104107
105108config := &client.PoolConfig {
106- UserName : user,
107- Password : password,
108- NodeUrls : strings.Split (" 127.0.0.1:6667,127.0.0.1:6668" , " ," ),
109- }
109+ UserName : user,
110+ Password : password,
111+ NodeUrls : strings.Split (" 127.0.0.1:6667,127.0.0.1:6668" , " ," ),
112+ }
110113sessionPool = client.NewSessionPool (config, 3 , 60000 , 60000 , false )
111114
112115```
@@ -146,7 +149,6 @@ if err == nil {
146149
147150```
148151
149-
150152## Developer environment requirements for iotdb-client-go
151153
152154### OS
0 commit comments