Orleans under the hood
summary
Orleans presents concrete internals: a C# source generator emits per-method proxy and invokable types, enabling a zero alloc rpc path (ValueTask + pooled awaitables) and a compact serializer that packs field-id deltas into a single tag byte. Techniques include stackable ref structs, JIT-specialized generics, branchless varint encoding, and BenchmarkDotNet + disasm-driven tuning. Production pedigree spans over nine years at Microsoft and the vNext RPC/serialization stack is implemented and benchmarked against MessagePack with comparable throughput and lower allocations.
AI-written summary · about
chapters (6)
- 0:00Start
- 20:39Call into the runtime to locate instantiate the grain, send it a message, and wait for the response. Uses a reusable, pooled awaitable object to signal completion
- 43:32Jose Silva Reuben, when do you recommend Orleans and when AKKA- NET? Does Orleans use the Actor Model? Thank you!
- 44:35Gareth Hubball How do you manage reads and writes to a single database using Orleans?
- 47:54Sandyp RC how orleans handle the connection pool to retrieve data from its state database this will be single connection pool or it will depand as per request? ?
- 49:34Jose Silva Reuben, what are the differences between Orleans and Microsoft Dapr?
related talks
01h 01mHow to build real-world applications with Orleans
59mIntroduction to project Orleans for your distributed applications
01h 02mPub crawling in Orleans: exploring the Actor model
09mA perfect async RPC Framework?
11m"RPC Frameworks Overview"
31mRPC Frameworks Overview
43mWhat you need to know about the comeback of RPC
01h 09mBuild a Highly Performant Interservice Communication with gRPC for ASP NET Core
