Recent

Author Topic: gRPC native implementation  (Read 3602 times)

tudi_x

  • Hero Member
  • *****
  • Posts: 532
gRPC native implementation
« on: February 19, 2021, 05:08:31 pm »
hi All,
any chance of having a gRPC native implementation (grpc.io) with Free Pascal?
Lazarus 2.0.2 64b on Debian LXDE 10

PierceNg

  • Sr. Member
  • ****
  • Posts: 369
    • SamadhiWeb
Re: gRPC native implementation
« Reply #1 on: February 20, 2021, 04:49:54 pm »
The key pieces of gRPC seem to be Protocol Buffers and HTTP/2.

For the former, there is https://github.com/lalexs75/protobuf-fpc but it doesn't fully support proto3 which is the recommended protobuf version for gRPC.

For the latter, I don't know of one implemented in Pascal (or Delphi). Maybe the best bet is to wrap http://nghttp2.org/, a C library. There is a Delphi wrapper, completeness unknown: https://github.com/grijjy/DelphiScalableClientSockets/blob/master/Nghttp2.pas.

PierceNg

  • Sr. Member
  • ****
  • Posts: 369
    • SamadhiWeb
Re: gRPC native implementation
« Reply #2 on: February 24, 2021, 10:26:13 am »
So there is a HTTP/2 server in Pascal: https://github.com/iLya2IK/wchttpserver!

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: gRPC native implementation
« Reply #3 on: February 27, 2021, 01:24:12 am »
So there is a HTTP/2 server in Pascal: https://github.com/iLya2IK/wchttpserver!
Rather fresh, let's see if Michael can incorporate it to fphttpserver transparently, or at least toggleable by a property.

 

TinyPortal © 2005-2018