[HN Gopher] Sonora: Python implementation of gRPC-Web built on t...
___________________________________________________________________
Sonora: Python implementation of gRPC-Web built on top of WSGI/ASGI
Author : BiteCode_dev
Score : 28 points
Date : 2022-01-18 20:02 UTC (2 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| languagehacker wrote:
| Pretty cool! Honestly, I've found the challenges related to
| standing up Python-based gRPC services to be super complicated
| and not worth the hit. I'm not sure this solves that in
| particular, because most of the pain is around things like TLS,
| HTTP2, proxy and loadbalancer configuration, and other things I'd
| love to not have to spend hours worrying about just to massage
| the bytes right.
|
| This is a long-winded way of saying that I used to really love
| protocol buffers and gRPC but at this point am a little soured on
| them in practice.
| xarope wrote:
| I'm currently working on a python-based gRPC project. I use
| envoy to handle all the stuff you mentioned. I do like gRPC
| compared to REST, although I wish there were more native data
| types for gRPC, e.g. UUID and Decimal/Numeric - I create types
| for these ala google's string marshalling for decimals, but it
| means therefore I must do my own data validation.
| __alexs wrote:
| Hi, author of Sonora here.
|
| gRPC-Web is actually exactly what you want if you want gRPC but
| none of the TLS, HTTP2 etc pain. It "just works" on HTTP/1.1
| like any other server.
|
| The Google libraries are definitely a pain to use in Python and
| even if you've got all the HTTP2 stuff sorted already it
| doesn't play that nicely with existing code bases.
| CobrastanJorji wrote:
| Hey, I haven't tried using gRPC with Python yet but I had
| been considering it recently and now I'm worried. Could you
| give me an example of what sort of trouble I should expect?
| What sort of trouble is it going to give my existing code
| base?
___________________________________________________________________
(page generated 2022-01-18 23:01 UTC)