consul/internal/controller/cache
Matt Keeler 326c0ecfbe
In-Memory gRPC (#19942)
* Implement In-Process gRPC for use by controller caching/indexing

This replaces the pipe base listener implementation we were previously using. The new style CAN avoid cloning resources which our controller caching/indexing is taking advantage of to not duplicate resource objects in memory.

To maintain safety for controllers and for them to be able to modify data they get back from the cache and the resource service, the client they are presented in their runtime will be wrapped with an autogenerated client which clones request and response messages as they pass through the client.

Another sizable change in this PR is to consolidate how server specific gRPC services get registered and managed. Before this was in a bunch of different methods and it was difficult to track down how gRPC services were registered. Now its all in one place.

* Fix race in tests

* Ensure the resource service is registered to the multiplexed handler for forwarding from client agents

* Expose peer streaming on the internal handler
2024-01-12 11:54:07 -05:00
..
cachemock Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
index Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
indexers Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
testdata Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
.mockery.yaml Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
cache.go Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
cache_test.go Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
client.go Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
client_test.go Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
clone.go In-Memory gRPC (#19942) 2024-01-12 11:54:07 -05:00
clone_test.go In-Memory gRPC (#19942) 2024-01-12 11:54:07 -05:00
errors.go Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
errors_test.go Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
kind.go Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
kind_test.go Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00