Commit Graph

222 Commits

Author SHA1 Message Date
Bright Chen 12fb539a1c Use monotonic time instead of wall time (#3268) 2026-04-13 14:14:03 +08:00
wayslog 11a71050d2 feat(redis): add native Redis Cluster channel, tests and docs 2026-03-01 15:54:11 +08:00
Chuang Zhang 02879c89d9 Add Transport to support more communication protocol extensions (#3199)
* Add The transport layer to support communication protocols of different device vendors.

* Refine the SocketMode name style and clean some unused code

* Refine Transport Debug method param and RdmaTransport WaitEpollOut code

* format the code, remove indentation for top class and variables in new file

* review code

---------

Co-authored-by: wenjiecn <3252896864@qq.com>
2026-01-27 10:59:00 +08:00
Giriraj Singh d2ea819af0 Added support to connect and perform CRUD operations with couchbase (#3138)
* Implemented Couchbase binary protocol support

* added support for single connection type for couchbase

* removed unnecessary cout statements

* added protocol code for helo packet

* fixed vbucketID code for identification, fixed add and get functions

* Added test cases for threaded get and add functions

* Added Error Handling code and made upsert and delete examples

* added makefile for example/couchbase_c++

* fixed bugs in couchbase header files

* Added License and formatted to google c++ norms

* fixed bugs, added support for collections and added couchbase_client.md

* fixed license issue

* added custom logic for caching collectionIDs

* added caching of collection manifests

* Added example code for multithreaded demonstration

* updated CMake

* Abstracted CRUD operations

* Added pipeline/batching support

* commented unused variables

* Updated support for C++17

* fixed some issue.

* Using Mutex instead of shared lock to support c++11

* Formatted code to google c++ format

* Introduced local cache per-instance of CouchbaseOperations and added functionality to handle server side manifest updates.

* Delete MODULE.bazel.lock

Unnecessary file

* Fixed bugs in local collection cache and collection refresh logic

* remove recurring statements

* Fixed bugs/repetitive calls to refreshing manifest on server

* Formatted function/variable naming scheme and formatted code in c++ google format

* removed unnecessary code

* updated comments

* updated comments

* updated documentation

* updated documentation

* updated documentation

* updated documentation

* Updated documentation

* Updated documentation

* Update documentation

* Added features and fixed bugs in multithreaded environment

Using connection_groups to differentiate between connections across CouchbaseOperations instances to different buckets.

Renamed CollectionManifestTracker class to CollectionManifestManager and all the related functionality inside it as before refreshing method was outside this class

Added two different authenticate method authenticate(not secure) and authenticateSSL(secure)

* Updated multithreaded and single threaded code.

Added an example where a single instance is being shared across the threads when operating on single bucket.

* updated documentation

updated the documentation on thread safe operations and fixed small small discrepancies.

* removed commented code and updated readme to have links for cluster download certificate

* removed unused code.

* Added traditional bRPC coding approach

Traditional bRPC coding approach doesn't uses high level functions but provides more control to the user

fixed formatting issues.

fixed the bug in couchbase.cpp where logic to check the cache is empty was inverted

* updated couchbase_example.md

* added unit test cases

* removed using namespace std from couchbase.h

* restored original CMakeLists.txt
2025-11-25 16:56:37 +08:00
Yang,Liming 663625a73b support checksum (#2967) 2025-06-20 14:16:35 +08:00
Tanghui Lin cffbd243e5 keep session info in RedisConnContext (#2902)
* keep session info in RedisConnContext

* fix comment

* add uint test for redis ctx

* fix uinttest
2025-03-06 19:25:52 +08:00
Bright Chen 0608aa1e13 Fix gflag namespace of example and tools (#2879) 2025-01-19 21:28:55 +08:00
Jade e1bf467b20 set tags workers unlimitedly (#2801)
* set tags workers unlimitedly

* fix set concurrency test

---------

Co-authored-by: jiazheng.jia <jiazheng.jia@antgroup.com>
2024-10-31 10:13:43 +08:00
Jenrry You 7e5ec4fe8d Batch create and accept stream (#2754)
* feat: batch create and accept stream

* fix protobuf 22.5 compilation error related to thread_local in MacOS

* refine style

* modify code based on the code review feedback and add more tests

modify code based on the code review feedback  and add more tests
2024-10-09 10:39:42 +08:00
Yang,Liming 36353efd21 Merge pull request #2737 from GreateCode/jemalloc_profiler
support jemalloc profiler
2024-09-23 16:14:59 +08:00
GreateCode c4cd404310 support stats print 2024-08-29 23:22:41 +08:00
Allen d79f0d3136 [#2740] fix example/rdma_performance compilation error (#2741)
Co-authored-by: ivanallen <ivanallen@qq.com>
2024-08-22 17:48:51 +08:00
GreateCode 7874a4aef0 fix Darwin mallctl 2024-08-15 22:00:02 +08:00
Bright Chen 0f5e102a21 Support proxy and generic call of baidu protocol (#2629)
* Support proxy and generic call of baidu protocol

* Add example
2024-06-13 12:21:52 +08:00
Yang Liming fb7188bba8 bthread set concurrency by tag 2024-05-07 11:04:54 +08:00
Yang,Liming 24fc31eaa5 span for new bthread (#2519) 2024-02-26 10:46:43 +08:00
Weibing Wang 210ebfb312 Support c++20 coroutine (#2121)
* Support c++20 coroutine

* Fix CI UT failed

* Add example coroutine Makefile

* Add usercode_in_coroutine flag

* Add coroutine document

* Add experimental namespace for coroutine
2024-01-23 12:12:59 +08:00
Bright Chen 09141d4d87 Opt contention: support tcmalloc GetStackTrace and reduce hash calculations (#2488) 2024-01-17 10:28:21 +08:00
Bright Chen 4357ceeeba Fix json2pb compile error of examples (#2482) 2023-12-27 12:55:02 +08:00
Yang,Liming 73b307a768 bthread task group add tag (#2358)
Co-authored-by: Yang Liming <yangliming02@meituan.com>
2023-12-20 11:47:26 +08:00
youcheng huang e1a88638fb send response之后,request/response对象析构之前执行一些自定义逻辑 (#2328)
* call_after_rpc_resp

* fix function name & add examples & add ut

* fix mistake

* fix compile error

* fix compile error

* update ut

* complete ut

* update ut

* modify function name

---------

Co-authored-by: yuncheng <yuncheng@pinduoduo.com>
2023-10-25 15:01:45 +08:00
thorneliu 283ac46212 add HTTP server-sent-events(SSE) example in brpc http server 2023-09-07 23:21:44 +08:00
Yitao Wang 5dc6562049 fix thrift version gt 0.13.0 (#2257)
* fix thrift version gt 0.13.0

Signed-off-by: wangyitao <wangyitao999@outlook.com>

* address config_brpc.sh and fix issue

Signed-off-by: wangyitao <wangyitao999@outlook.com>

* make config_brpc.sh silent and make thrift_demo runable

---------

Signed-off-by: wangyitao <wangyitao999@outlook.com>
2023-09-07 17:00:10 +08:00
Dongsheng He 0a940cdc4b fix redis server example handler memory leak (#2370) 2023-09-07 13:17:54 +08:00
day253 2a42a26296 remove unnecessary libthriftnb 2023-07-24 00:17:02 +08:00
Beans 22058443fd fix the issue of const unused in the example of RDMA (#2187)
Signed-off-by: beans <jing.gao@outlook.com>
2023-03-31 10:18:11 +08:00
Xiaofeng Wang d6df0f156a Prefer to use env to find bash
Close #2070
2023-02-24 19:17:38 +08:00
Weibing Wang 6b563554f2 Remove incubator (#2056) 2023-01-10 10:33:14 +08:00
Ran Miller 6ebe2e98f2 delete deprecated logoff_ms gflag in example folder (#2064) 2022-12-27 10:26:37 +08:00
fan 0aa1cf1831 add bazel third_party support (#1996)
* add bazel support

* remove bind

* update

* update

* update

* update doc

* fix rdma bazel build

* update
2022-12-06 13:58:19 +08:00
果冻虾仁 581c7b1aaa remove unnecessary semicolon (#2004)
* example

* src,tool
2022-11-21 10:18:51 +08:00
372046933 4b08958753 Add rdma_performance bazel support (#1984)
* Add rdma_performance bazel support

* Fix CI
2022-11-09 10:10:04 +08:00
Tuvie 4f63a27c9a enable brpc use rdma 2022-09-23 14:27:46 +08:00
Tuvie 71af04c568 Merge branch 'master' into master 2022-09-22 23:56:39 +08:00
Tuvie 546337c236 Merge branch 'master' into master 2022-09-04 18:55:34 +08:00
Shuai Zhang ad20082010 Chore: rework Bazel build system 2022-08-31 11:00:55 +08:00
Tuvie 568b1ac57a Merge branch 'master' into master 2022-08-15 13:56:25 +08:00
Tuvie 7d38c8f404 enable brpc use rdma 2022-07-19 23:04:37 +08:00
LorinLee a4e20bb4de Merge pull request #1840 from wasphin/feature/license-eyes
Add skywalking license eyes
2022-07-16 13:37:04 +08:00
Xiaofeng Wang 96bf3651db Add Apache license header 2022-07-15 22:53:27 +08:00
wangweibing 87e18c6a15 Fix __const__ compile error in gcc version >= 11.2.0 2022-06-07 14:51:21 +08:00
wangweibing 676b583c54 Support ipv6 and uds for example echo_c++ 2021-09-15 09:41:24 +00:00
jamesge e93e0c2afe fix CMakeList.txt in examples and rename BUILD to BUILD.bazel to avoid conflict with cmake 2020-12-05 14:51:40 +08:00
jamesge 20f2b4a887 Support pass down request_id 2020-11-29 16:07:25 +08:00
jamesge 2071a22c7f Controller::CreateProgressiveAttachment returns intrusive_ptr instead of raw pointer which could be deleted and invalid before usage 2020-07-24 16:04:24 +08:00
liuminghang 21b1ece8eb remove 'flush_batched' 2020-06-01 12:15:39 +08:00
liuminghang 9e000a2ca9 test redis \0 2020-05-30 19:15:51 +08:00
liuminghang 36ebd737dd fix redis args 2020-05-28 22:00:56 +08:00
jamesge 74310245bf make by config_brpc.sh shows commands by default, add -s to hide 2020-02-10 17:03:22 +08:00
zhujiashun faea9470e3 replace_include_with_find_package: fix example under mac 2020-01-20 15:19:40 +08:00