Skip to content

ChivenZhang/OpenMS

Repository files navigation

  ___                   __  __ ____  
 / _ \ _ __   ___ _ __ |  \/  / ___| 
| | | | '_ \ / _ \ '_ \| |\/| \___ \ 
| |_| | |_) |  __/ | | | |  | |___) |
 \___/| .__/ \___|_| |_|_|  |_|____/ 
======|_|============================

:: OpenMS :: (v1.0.0)

Description

The Distributed Network Framework based on Microservice Theory.

Features

  • Support C++20 coroutine coding
  • Support Reactor network model
  • Support Actor messaging model
  • Support tcp, udp, kcp, rpc, http, mysql, redis
  • Support Microservice cluster
  • Support Windows, macOS, Linux
  • Support Hot module replacement

How to install

// Master service instance
class Master : public MasterService
{
protected:
	void onInit() override;
	void onExit() override;
};
OPENMS_RUN(Master)
// First cluster instance joined to master
class Cluster1 : public ClusterService
{
protected:
	void onInit() override;
	void onExit() override;
};
OPENMS_RUN(Cluster1)
// Second cluster instance joined to master
class Cluster2 : public ClusterService
{
protected:
	void onInit() override;
	void onExit() override;
};
OPENMS_RUN(Cluster2)

Architecture

missing