Skip to content

Commit aa0e009

Browse files
docs:add config-center (#867)
Co-authored-by: kinggo <[email protected]>
1 parent d2cf30f commit aa0e009

File tree

6 files changed

+797
-0
lines changed

6 files changed

+797
-0
lines changed

content/en/docs/kitex/Tutorials/options/client_options.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ func WithTransportProtocol(tp transport.Protocol) Option
4747

4848
Set the transport protocol, configure the transport protocol on the message protocol. Thrift/KitexProtobuf can configure TTHeader, TTHeaderFramed, and Framed. In addition, Framed is not strictly a transmission protocol. In order to distinguish it for PurePayload, it is also configured as a transmission protocol. PurePayload means that there is no transmission protocol; if it is configured as GRPC, it means that the GRPC protocol is used. , the transmission protocol of GRPC is HTTP2, but for the convenience of users' understanding, it is directly used as the configuration of the transmission protocol. Note that configuring GRPC needs to use Protobuf to define Service. If GRPC is not configured, KitexProtobuf protocol is used by default.
4949

50+
When WithTransportProtocol is not set, the default protocol is PurePayload
5051

5152
### WithShortConnection
5253

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: "ConfigCenter"
3+
linkTitle: "ConfigCenter"
4+
date: 2023-11-29
5+
weight: 1
6+
keywords: ["ConfigCenter"]
7+
description: "ConfigCenter Extension provided by kitex-contrib"
8+
9+
---
10+
11+
## Kitex provide configuration center
12+
13+
Kitex provides dynamically configurable service management capabilities, including client timeout, retry, circuit breaker, and server limiting.
14+
15+
kitex-contrib provides an extension to the community's mainstream configuration center and realizes dynamic configuration docking with kitex governance features.
16+
17+
Microservice developers can use the configuration center to dynamically obtain service governance configurations, which take effect in near real-time
18+
19+
Currently supported configuration centers are:
20+
21+
| config-center | depository |
22+
|:-------------:|:---------------------------------------------------------------:|
23+
| nacos | [config-nacos](https://github.com/kitex-contrib/config-nacos) |
24+
| etcd | [config-etcd](https://github.com/kitex-contrib/config-etcd) |
25+
| apollo | [config-apollo](https://github.com/kitex-contrib/config-apollo) |
26+
27+
## Suite
28+
29+
In the process of connecting to the configuration center, Suite is used for third-party expansion.
30+
31+
Suite is defined as follows:
32+
```go
33+
type Suite interface {
34+
Options() []Option
35+
}
36+
```
37+
Both the server and the client use the WithSuite method to enable new suites.
38+
39+
For more information about Suite, please see [Suite](../../framework-exten/suite)
40+

0 commit comments

Comments
 (0)