Session 07 scope (5 features, 17 tests, ~1165 Go LOC): - Protocol/ParserTypes.cs: ParserState enum (79 states), PublishArgument, ParseContext - Protocol/IProtocolHandler.cs: handler interface decoupling parser from client - Protocol/ProtocolParser.cs: Parse(), ProtoSnippet(), OverMaxControlLineLimit(), ProcessPub/HeaderPub/RoutedMsgArgs/RoutedHeaderMsgArgs, ClonePubArg(), GetHeader() - tests/Protocol/ProtocolParserTests.cs: 17 tests via TestProtocolHandler stub Auth extras from session 06 (committed separately): - Auth/TpmKeyProvider.cs, Auth/CertificateIdentityProvider/, Auth/CertificateStore/ Internal utilities & data structures (session 06 overflow): - Internal/AccessTimeService.cs, ElasticPointer.cs, SystemMemory.cs, ProcessStatsProvider.cs - Internal/DataStructures/GenericSublist.cs, HashWheel.cs - Internal/DataStructures/SubjectTree.cs, SubjectTreeNode.cs, SubjectTreeParts.cs All 461 tests pass (460 unit + 1 integration). DB updated for features 2588-2592 and tests 2598-2614.
1.1 KiB
1.1 KiB
Session 14: Routes
Summary
Inter-server routing — how NATS servers form a full mesh cluster and route messages between nodes.
Scope
| Go File | Features | Feature IDs | Go LOC |
|---|---|---|---|
| server/route.go | 57 | 2895–2951 | 2,988 |
| Total | 57 | 2,988 |
.NET Classes
RouteHandler— route connection managementClientConnection(partial — route-specific methods, 25 features from client.go already counted in S08)
Test Files
| Test File | Tests | Test IDs |
|---|---|---|
| server/routes_test.go | 70 | 2796–2865 |
| Total | 70 |
Dependencies
- Session 01 (Foundation Types)
- Session 07 (Protocol Parser)
- Session 08 (Client Connection)
- Session 09 (Server Core Part 1)
.NET Target Location
dotnet/src/ZB.MOM.NatsNet.Server/Routing/
Notes
- Route connections are
ClientConnectioninstances with special handling - Protocol includes route-specific INFO, SUB, UNSUB, MSG operations
- Cluster gossip and route solicitation logic lives here