techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.6K
active users

#grpc

1 post1 participant0 posts today

🌘 低延遲網絡中 gRPC 客戶端瓶頸及解決方案
➤ 揭示並克服gRPC在低延遲環境下的效能限制
blog.ydb.tech/the-surprising-g
YDB團隊在使用gRPC暴露資料庫API時,發現了在低延遲網絡中一個意外的瓶頸:集羣節點越少,基準測試負載集羣的難度越高,並且會導致資源閒置和客戶端延遲增加。 經調查,瓶頸位於gRPC客戶端。 文章描述了此問題、重現步驟以及避免此瓶頸,同時實現高吞吐量和低延遲的方法。
+ 這篇文章提供了非常實用的資訊,對於使用gRPC架設服務的工程師來說,非常有價值。
+ 我一直認為gRPC的效能表現很好,沒想到低延遲環境下客戶端也會是瓶頸,值得深入研究。
#gRPC #效能 #網絡 #瓶頸

YDB.tech blog · The Surprising gRPC Client Bottleneck in Low-Latency Networks — and How to Get Around ItBy Evgeniy Ivanov

Got a simple Rust gRPC server up and running with bearer token authentication. Pretty straightforward by checking various samples. One service for authenticating/registering and then another service that requires a valid token. Hardcoded stuff for now, but it should be doable to handle a "Sign in with Apple" request, validate it and generate tokens.

Biggest hurdle is me having to google literally everything related to how to do things in Rust. :)

#rust#tokio#tonic

I undertook a thought exercise: how would I go about designing a RPC method when using gRPC?

matttproud.com/blog/posts/grpc

This is an interesting topic to explore, since gRPC provides building blocks for four major RPC method morphologies: unary, server-side streaming, client-side streaming, and bidirectional streaming. Deceptively I expected the considerations to be few and simple, but they turned out to be far more complex than anticipated.

In sum: requirements matter.

matttproud.com (blog) · Flowchart for Choosing gRPC Methods Types
More from mtp