Commit cb5d264
Replace REST with gRPC on server
Switch from HTTP/1.1 protobuf-over-REST to gRPC over HTTP/2,
implemented directly on hyper without tonic. The gRPC framing
module handles encode/decode of the 5-byte length-prefixed wire
format, status codes, and HTTP/2 trailers.
Key changes:
- hyper http1 → http2, add TokioExecutor for HTTP/2 connections
- TLS ALPN set to h2 for HTTP/2 negotiation
- HMAC auth simplified to timestamp-only (no body) since TLS
guarantees integrity
- Events delivered via tokio broadcast channel, replacing the
RabbitMQ EventPublisher infrastructure
- Config renamed rest_service_addr → grpc_service_addr
- Removed lapin, async-trait, events-rabbitmq feature
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 113a77d commit cb5d264
11 files changed
Lines changed: 338 additions & 1028 deletions
File tree
- ldk-server
- src
- io
- events
- rabbitmq
- util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 27 | | |
32 | 28 | | |
33 | | - | |
34 | 29 | | |
35 | 30 | | |
36 | 31 | | |
37 | 32 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 33 | | |
42 | 34 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 41 | | |
47 | 42 | | |
48 | 43 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments