Project Icon

CloudI

高效消息传递的分布式应用服务器 可扩展且容错

CloudI是一个支持多语言的分布式应用服务器,提供高效消息传递。它采用单一服务抽象设计,具备可扩展性和容错能力。CloudI可增强软件的容错性和可扩展性,也适用于遗留代码。支持C/C++、Erlang/Elixir、Java、Python等语言,并提供简单API接口用于SOA开发。适合需要可靠事务处理的软件项目。

CloudI 2.0.7

Build Status Project Status RSS Mastodon X (formerly Twitter) IRC Email

LICENSE

MIT License

ABOUT

What is CloudI?

(short answer) "A distributed application server that provides efficient messaging for many programming languages within a single service abstraction that is both scalable and fault-tolerant."

(shorter answer) "A rock-solid transaction processing system for flexible software development."

(shortest answer) "A Cloud at the lowest level."

Who would use CloudI?

Software developers that do not want to get locked into corporate vendors or frameworks that push for perpetual commercial support or licenses.

Why should CloudI be used?

CloudI makes software fault-tolerant and scalable, utilizing Erlang, even if the software is legacy source code. CloudI mitigates software development risk (delays or failures) when making software scale in non-Erlang programming languages, or during a conversion of a software system (fully or partially) to the Erlang programming language.

How should CloudI be used?

The CloudI API provides a simple set of functions for Service-Oriented Architecture (SOA) development in any supported language (currently ATS, C/C++, Erlang/Elixir, Go, Haskell, Java, JavaScript, OCaml, Perl, PHP, Python, Ruby and Rust):

  • subscribe, unsubscribe, subscribe_count
  • send_async, send_sync, mcast_async (mcast_async == publish)
  • recv_async
  • return, forward

External communication that needs to scale (beyond 10,000 connections) can use an existing internal CloudI service (implemented in Erlang or Elixir) which may do processing for one or more external CloudI services (implemented in ATS, C/C++, Go, Haskell, Java, JavaScript, OCaml, Perl, PHP, Python, Ruby and/or Rust)

Even if external communication doesn't need to scale, private cloud computing tasks (number crunching) can gain fault-tolerance and internal system scalability within CloudI.

Where should I find more information?

Please see the FAQ for more details.

INSTALLATION

Requirements

  • Erlang >= 22.0 (erlang /Ubuntu, erlang /Alpine)
  • C/C++ (C++98 compliant, improved error information with C++11 support)
    • GCC >= 4.9 (g++ /Ubuntu, g++ /Alpine) or clang >= 3.3 (clang /Ubuntu, clang /Alpine)
  • boost >= 1.40.0 (libboost-system-dev libboost-thread-dev libboost-dev /Ubuntu, boost-system boost-thread boost-dev /Alpine)

Optional (default="yes"):

  • C
    • Use the "--enable-c-support=no" configure flag to disable
  • C++
    • CloudI::API::backtrace() function
      • backtrace with backward-cpp (Linux)
        • backtrace symbols options:
          • (binutils-dev /Ubuntu, binutils-dev /Alpine)
          • (libdw-dev /Ubuntu, elfutils-dev /Alpine)
          • libdwarf version < 20210528 (libdwarf-dev libelf-dev /Ubuntu, libdwarf libdwarf-dev elfutils-dev /Alpine)
        • backtrace data options:
          • compiler unwind.h
          • (libexecinfo-dev /Alpine)
      • backtrace with boost::stacktrace (boost >= 1.71)
        • (libboost-stacktrace-dev /Ubuntu, boost-stacktrace_basic /Alpine)
      • Use the "--with-cxx-backtrace=no" configure flag to disable
    • Use the "--enable-cxx-support=no" configure flag to disable
  • Java >= 1.5 JDK
    • (default-jdk /Ubuntu, openjdk8 /Alpine)
    • Use the "--enable-java-support=no" configure flag to disable
    • Java CloudI API is available as a Maven package
  • JavaScript >= 0.12.18
    • (nodejs /Ubuntu, nodejs /Alpine)
    • Use the "--enable-javascript-support=no" configure flag to disable
    • JavaScript CloudI API is available as a npm package
  • Perl >= 5.10 (with Compress::Zlib)
    • (perl perl-modules /Ubuntu, perl /Alpine)
    • Use the "--enable-perl-support=no" configure flag to disable
  • PHP >= 7.0
    • (php /Ubuntu, php7 /Alpine)
    • Use the "--enable-php-support=no" configure flag to disable
  • Python >= 2.7.0
    • (python3 python3-dev /Ubuntu, python3 python3-dev /Alpine)
    • Use the "--enable-python-support=no" and "--enable-python-c-support=no" configure flag to disable
    • Python and Python/C CloudI API is available as a PyPI package
  • Ruby >= 1.9.0
    • (ruby /Ubuntu, ruby /Alpine)
    • Use the "--enable-ruby-support=no" configure flag to disable
    • Ruby CloudI API is available as a Ruby gem
  • syscall_lock service configuration option
    • syscall_lock with pledge (OpenBSD)
      • libc unistd.h
    • syscall_lock with libseccomp (Linux)
      • (libseccomp-dev /Ubuntu, libseccomp-dev /Alpine)
  • GNU MP library
    • (libgmp-dev /Ubuntu, gmp-dev /Alpine)
    • Used in the hexpi (C++) integration test only ("--with-integration-tests=no" configure flag to disable)

Optional (default="no"):

  • ATS2/Postiats >= 0.3.13
    • (ats2-lang /Ubuntu)
    • Use the "--enable-ats2-support" configure flag to enable
  • Go >= 1.11
    • (golang /Ubuntu, go /Alpine)
    • Use the "--enable-go-support" configure flag to enable
    • Go CloudI API is available as a remote import
  • Haskell (GHC >= 8.6.0)
    • (ghc zlib1g-dev /Ubuntu, ghc zlib-dev /Alpine)
    • Use the "--enable-haskell-support" configure flag to enable
    • Haskell CloudI API is available as a Hackage package for GHC >= 7.10.3
  • OCaml >= 4.08.0
    • (ocaml /Ubuntu, ocaml /Alpine)
    • Use the "--enable-ocaml-support" configure flag to enable
    • OCaml CloudI API is available as an opam package
  • Rust >= 1.66.1
    • (rustc /Ubuntu, rust /Alpine)
    • Use the "--enable-rust-support" configure flag to enable
    • Rust CloudI API is available as a published crate

Building

For configuration options, see FAQ: 3.2 - Installation Options.

cd src
./configure
make
sudo make install

Running

Within the installation directory the cloudi script controls CloudI.

To start CloudI:

sudo cloudi start

To stop CloudI:

sudo cloudi stop

INTEGRATION

See the Quick Start Guide or the API documentation

Integration points:

Dynamic Configuration and Monitoring:

Routing:

Maintained Services Excluded from this Repository:

Unmaintained Services Excluded from this Repository:

The default CloudI configuration will run the included integration tests if all the programming languages enabled by default are detected at configure time and the --with-integration-tests-ran configuration argument is used (to choose the src/cloudi_tests.conf.in configuration file).

If the --with-integration-tests=no configuration argument is used, the more minimal CloudI configuration will be used instead (in the src/cloudi_minimal.conf.in configuration file) to support basic things like the Quick Start Guide, the Dashboard and any tutorials or examples.

CONTACT

Michael Truog (mjtruog at protonmail dot

项目侧边栏1项目侧边栏2
推荐项目
Project Cover

豆包MarsCode

豆包 MarsCode 是一款革命性的编程助手,通过AI技术提供代码补全、单测生成、代码解释和智能问答等功能,支持100+编程语言,与主流编辑器无缝集成,显著提升开发效率和代码质量。

Project Cover

AI写歌

Suno AI是一个革命性的AI音乐创作平台,能在短短30秒内帮助用户创作出一首完整的歌曲。无论是寻找创作灵感还是需要快速制作音乐,Suno AI都是音乐爱好者和专业人士的理想选择。

Project Cover

白日梦AI

白日梦AI提供专注于AI视频生成的多样化功能,包括文生视频、动态画面和形象生成等,帮助用户快速上手,创造专业级内容。

Project Cover

有言AI

有言平台提供一站式AIGC视频创作解决方案,通过智能技术简化视频制作流程。无论是企业宣传还是个人分享,有言都能帮助用户快速、轻松地制作出专业级别的视频内容。

Project Cover

Kimi

Kimi AI助手提供多语言对话支持,能够阅读和理解用户上传的文件内容,解析网页信息,并结合搜索结果为用户提供详尽的答案。无论是日常咨询还是专业问题,Kimi都能以友好、专业的方式提供帮助。

Project Cover

讯飞绘镜

讯飞绘镜是一个支持从创意到完整视频创作的智能平台,用户可以快速生成视频素材并创作独特的音乐视频和故事。平台提供多样化的主题和精选作品,帮助用户探索创意灵感。

Project Cover

讯飞文书

讯飞文书依托讯飞星火大模型,为文书写作者提供从素材筹备到稿件撰写及审稿的全程支持。通过录音智记和以稿写稿等功能,满足事务性工作的高频需求,帮助撰稿人节省精力,提高效率,优化工作与生活。

Project Cover

阿里绘蛙

绘蛙是阿里巴巴集团推出的革命性AI电商营销平台。利用尖端人工智能技术,为商家提供一键生成商品图和营销文案的服务,显著提升内容创作效率和营销效果。适用于淘宝、天猫等电商平台,让商品第一时间被种草。

Project Cover

AIWritePaper论文写作

AIWritePaper论文写作是一站式AI论文写作辅助工具,简化了选题、文献检索至论文撰写的整个过程。通过简单设定,平台可快速生成高质量论文大纲和全文,配合图表、参考文献等一应俱全,同时提供开题报告和答辩PPT等增值服务,保障数据安全,有效提升写作效率和论文质量。

投诉举报邮箱: service@vectorlightyear.com
@2024 懂AI·鲁ICP备2024100362号-6·鲁公网安备37021002001498号