Building an API Gateway with YARP
summary
Construction of an API Gateway using YARP (Yet Another Reverse Proxy) in an ASP.NET Core environment, describing real issues encountered and how YARP extension points were used. Covers handling request bodies in YARP, integrating Lua via NLua, transforming JSON without buffering using System.Text.Json, and generating Swagger documentation dynamically.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 2:25Why build custom API Gateway
- 4:12YARP as reverse proxy
- 7:00YARP customization
- 9:48Transforming API contracts
- 11:33Streaming body transform
- 26:44Buffered body transform
- 27:24Embedding Lua scripting
- 38:20Lua integration engine
- 45:40Swagger integration challenges
- 50:11WebSocket and gRPC support
- 55:09Security and sandboxing
- 57:10Q&A
