Skip to content
/ acid Public
forked from zavier-wong/acid

A distributed service governance framework. 分布式服务治理框架

License

Notifications You must be signed in to change notification settings

7c0o/acid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACID: 分布式服务治理框架

学习本项目需要有一定的C++,RPC,分布式知识

注意

项目经过了重构,如果你是阅读文章而来的读者,可以前往 旧版本

构建项目 / Build

  1. 项目用到了大量C++17/20新特性,如constexpr if的编译期代码生成,基于c++20 coroutine的无栈协程状态机解析 URI 和 HTTP 协议等。注意,必须安装g++-11,否则不支持编译。

ubuntu可以采用以下方法升级g++,对于其他环境,可以下载源代码自行编译。

sudo apt install software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt install gcc-11 g++-11
  1. 构建依赖库
git clone --recursive https://github.com/zavier-wong/acid
cd acid
sudo bash build.sh

3.构建项目 / Build

mkdir build
cd build
cmake ..
make
cd ..

现在你可以在 acid/lib 里面看见编译后的静态库 libacid.a

example 和 tests 的 cmake 已经写好,只需要进入对应的目录

mkdir build
cd build
cmake ..
make

反馈和参与

About

A distributed service governance framework. 分布式服务治理框架

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.2%
  • CMake 1.8%
  • HTML 1.7%
  • Other 0.3%