gorse icon indicating copy to clipboard operation
gorse copied to clipboard

api: support gRPC and provide SDKs

Open zhenghaoz opened this issue 2 years ago • 1 comments

Compare to exited RESTful API, gRPC is more efficient for communications among servers.

Design

For each API, move current implementation to a shared handler, and call this shared handler from RESTful API handler as well as gRPC API handler.

┌───────────┐ ┌───────────┐
│RESTful API│ │ gRPC API  │
└─────────┬─┘ └─┬─────────┘
          │     │
        ┌─▼─────▼─┐
        │ Handler │
        └─────────┘

Tasks

  • [ ] gRPC APIs
  • [ ] Gorse Go SDK
  • [ ] Gorse Java SDK
  • [ ] Gorse Rust SDK
  • [ ] Gorse Python SDK
  • [ ] Gorse Node.js SDK

zhenghaoz avatar Dec 24 '21 15:12 zhenghaoz

+1

bilinxing avatar Feb 28 '22 01:02 bilinxing