Skip to content

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

License

Notifications You must be signed in to change notification settings

sunquakes/moonquakes

Repository files navigation

English | 🇨🇳中文

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.

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 to communicate with go and php framework; The php framework is Hyperf, it has own jsonrpc component to communicate with go and java framework; The go framework use jsonrpc4go to communicate with java and php framework.

Getting started

IP

  • Use ip.
# 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.
# 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.
# 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