Skip to content

Commit

Permalink
docs:add config-center (#867)
Browse files Browse the repository at this point in the history
Co-authored-by: kinggo <[email protected]>
  • Loading branch information
ViolaPioggia and li-jin-gou authored Dec 5, 2023
1 parent d2cf30f commit aa0e009
Show file tree
Hide file tree
Showing 6 changed files with 797 additions and 0 deletions.
1 change: 1 addition & 0 deletions content/en/docs/kitex/Tutorials/options/client_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func WithTransportProtocol(tp transport.Protocol) Option

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.

When WithTransportProtocol is not set, the default protocol is PurePayload

### WithShortConnection

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
title: "ConfigCenter"
linkTitle: "ConfigCenter"
date: 2023-11-29
weight: 1
keywords: ["ConfigCenter"]
description: "ConfigCenter Extension provided by kitex-contrib"

---

## Kitex provide configuration center

Kitex provides dynamically configurable service management capabilities, including client timeout, retry, circuit breaker, and server limiting.

kitex-contrib provides an extension to the community's mainstream configuration center and realizes dynamic configuration docking with kitex governance features.

Microservice developers can use the configuration center to dynamically obtain service governance configurations, which take effect in near real-time

Currently supported configuration centers are:

| config-center | depository |
|:-------------:|:---------------------------------------------------------------:|
| nacos | [config-nacos](https://github.com/kitex-contrib/config-nacos) |
| etcd | [config-etcd](https://github.com/kitex-contrib/config-etcd) |
| apollo | [config-apollo](https://github.com/kitex-contrib/config-apollo) |

## Suite

In the process of connecting to the configuration center, Suite is used for third-party expansion.

Suite is defined as follows:
```go
type Suite interface {
Options() []Option
}
```
Both the server and the client use the WithSuite method to enable new suites.

For more information about Suite, please see [Suite](../../framework-exten/suite)

Loading

1 comment on commit aa0e009

@vercel
Copy link

@vercel vercel bot commented on aa0e009 Dec 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.