Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sunquakes/moonquakes

A rpc framework that Java/PHP(hyperf)/Golang intercommunicate implementation of JSON-RPC 2. Support consul & nacos.
https://github.com/sunquakes/moonquakes

demo go hyperf java jsonrpc jsonrpc2 jsonrpc4go jsonrpc4j php springboot

Last synced: 29 days ago
JSON representation

A rpc framework that Java/PHP(hyperf)/Golang intercommunicate implementation of JSON-RPC 2. Support consul & nacos.

Awesome Lists containing this project

README

        

English | [πŸ‡¨πŸ‡³δΈ­ζ–‡](README_ZH.md)

# moonquakes

moonquakes logo



GitHub go.mod Go version (subdirectory of monorepo)
Maven Central
Php Version
GitHub
Docker Image Version (latest by date)

## Documentation

Visit [moonquakes.io](https://moonquakes.io).

## Description

Moonquakes is a demo project. It show how to intercommunicate in use of jsonrpc protocol in some web framework, those
web framework is written by java, php or golang.

In moonquakes, the java framework is springboot, it use [jsonrpc4j](https://github.com/sunquakes/jsonrpc4j) to
communicate with go and php framework; The php framework is [Hyperf](https://github.com/hyperf/hyperf), it has
own [jsonrpc component](https://www.hyperf.wiki/3.0/#/en/json-rpc) to communicate with go and java framework; The go
framework use [jsonrpc4go](https://github.com/sunquakes/jsonrpc4go) to communicate with java and php framework.

## Getting started

### IP

- Use ip.

```shell
# Clone code.
git clone [email protected]:sunquakes/moonquakes.git

cd moonquakes

# Switch to branch main.
git switch main

# Build image.
docker-compose build

# Run docker container.
docker-compose up
```

### Registration & Discovery

- Use consul.

```shell
# Clone code.
git clone [email protected]:sunquakes/moonquakes.git

cd moonquakes

# Switch to branch consul.
git switch consul

# Build image.
docker-compose build

# Run docker container.
docker-compose up
```

- Use nacos.

```shell
# Clone code.
git clone [email protected]:sunquakes/moonquakes.git

cd moonquakes

# Switch to branch nacos.
git switch nacos

# Build image.
docker-compose build

# Run docker container.
docker-compose up
```