Giter VIP home page Giter VIP logo

Comments (4)

Xunzhuo avatar Xunzhuo commented on June 12, 2024 1

I can help on that

from aeraki.

zhaohuabing avatar zhaohuabing commented on June 12, 2024 1

@caibirdme tRPC has been supported.

Follow the below steps to install trpc demo and try it:

In a kind cluster:

git clone https://github.com/aeraki-mesh/aeraki.git

cd aeraki

make demo

./demo/metaprotocol-trpc/install.sh
$ k -n meta-trpc get pod 
NAME                                                     READY   STATUS    RESTARTS   AGE
trpc-sample-client-bidirection-stream-77fb4f6d89-tr5hz   2/2     Running   0          18m
trpc-sample-client-stream-794cb4556f-mslkh               2/2     Running   0          18m
trpc-sample-client-unary-55f9cd4d6c-49k72                2/2     Running   0          18m
trpc-sample-server-stream-7c6b44788f-lj6nc               2/2     Running   0          18m
trpc-sample-server-v1-844ccb9dc4-q92t5                   2/2     Running   0          18m
trpc-sample-server-v2-7886559675-h9knp                   2/2     Running   0          18m

unary examp

$ k -n meta-trpc logs trpc-sample-client-unary-55f9cd4d6c-49k72  --tail 10
2023-12-17 07:08:45.270	DEBUG	client/main.go:77	client: send req:trpc-go-client-1
2023-12-17 07:08:45.274	DEBUG	client/main.go:83	client: receive rsp:response from :trpc-sample-server-v2-7886559675-h9knp
2023-12-17 07:08:46.275	DEBUG	client/main.go:77	client: send req:trpc-go-client-1
2023-12-17 07:08:46.278	DEBUG	client/main.go:83	client: receive rsp:response from :trpc-sample-server-v1-844ccb9dc4-q92t5
2023-12-17 07:08:47.279	DEBUG	client/main.go:77	client: send req:trpc-go-client-1
2023-12-17 07:08:47.283	DEBUG	client/main.go:83	client: receive rsp:response from :trpc-sample-server-v1-844ccb9dc4-q92t5
2023-12-17 07:08:48.283	DEBUG	client/main.go:77	client: send req:trpc-go-client-1
2023-12-17 07:08:48.289	DEBUG	client/main.go:83	client: receive rsp:response from :trpc-sample-server-v1-844ccb9dc4-q92t5
2023-12-17 07:08:49.289	DEBUG	client/main.go:77	client: send req:trpc-go-client-1
2023-12-17 07:08:49.293	DEBUG	client/main.go:83	client: receive rsp:response from :trpc-sample-server-v1-844ccb9dc4-q92t5

stream example

$ k -n meta-trpc logs trpc-sample-client-stream-794cb4556f-mslkh --tail 10
2023-12-17 07:09:31.210	DEBUG	client/main.go:103	client: send stream req:trpc-go-client-5
发送data帧
2023-12-17 07:09:32.711	DEBUG	client/main.go:114	client: send close stream req to server
发送close帧
收到data帧
收到close帧
2023-12-17 07:09:33.213	DEBUG	client/main.go:118	client: client stream closed. rsp:msg:"response from :trpc-sample-server-v1-844ccb9dc4-q92t5"
发送init帧
2023-12-17 07:09:34.217	DEBUG	client/main.go:103	client: send stream req:trpc-go-client-1

from aeraki.

zhaohuabing avatar zhaohuabing commented on June 12, 2024

Actually, I wrote the trpc codec for metaprotocol when I was at Tencent. Are you from Tencent? If you're, could you please help also open source that codec and maybe raise a PR to add it to the MetaPeotocol repo?

@zhongfox @Xunzhuo @woluohenga @ianyuan26

from aeraki.

caibirdme avatar caibirdme commented on June 12, 2024

Thx a lot

from aeraki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.