EventMesh-sdk-java as the client,and comminucate with eventmesh-runtime,to finish the message sub and pub
EventMesh-sdk-java support both async and broadcast.
EventMesh-sdk-java support HTTP, TCP and gRPC.
The test demos of TCP, HTTP 和 GRPC are in the module eventmesh-examples
Run the main method of org.apache.eventmesh.tcp.demo.sub.eventmeshmessage.AsyncSubscribe
Run the main method of org.apache.eventmesh.tcp.demo.pub.eventmeshmessage.AsyncPublish
Run the main method of org.apache.eventmesh.tcp.demo.sub.eventmeshmessage.AsyncSubscribeBroadcast
Run the main method of org.apache.eventmesh.tcp.demo.pub.eventmeshmessage.AsyncPublishBroadcast
More information about EventMesh-TCP, please refer to EventMesh TCP
Run the main method of org.apache.eventmesh.http.demo.sub.SpringBootDemoApplication
Run the main method of org.apache.eventmesh.http.demo.pub.eventmeshmessage.AsyncPublishInstance
More information about EventMesh-HTTP, please refer to EventMesh HTTP
Run the main method of org.apache.eventmesh.grpc.pub.eventmeshmessage.AsyncPublishInstance
Run the main method of org.apache.eventmesh.grpc.sub.app.SpringBootDemoApplication
Run the main method of org.apache.eventmesh.grpc.pub.eventmeshmessage.RequestReplyInstance
Run the main method of org.apache.eventmesh.grpc.sub.EventmeshAsyncSubscribe
Run the main method of org.apache.eventmesh.grpc.pub.eventmeshmessage.BatchPublishInstance
More information about EventMesh-gRPC, please refer to EventMesh gRPC
Please refer to EventMesh Store and EventMesh Runtime to finish the necessary deployment before try our demo
After finishing the deployment of store and runtime, you can run our demos in module eventmesh-examples
:
cd bin sh tcp_eventmeshmessage_sub.sh
cd bin sh tcp_pub_eventmeshmessage.sh
cd bin sh tcp_sub_eventmeshmessage_broadcast.sh
cd bin sh tcp_pub_eventmeshmessage_broadcast.sh
cd bin sh http_sub.sh
cd bin sh http_pub_eventmeshmessage.sh
You can review the log in the folder /logs