Files
tasks/chasm/lib/tests/proto/v1/request_response.proto
94ffd88858 Added Chasm RPC handler foundation and interceptor. (#8411)
## What changed?
Added Chasm RPC handler foundation and interceptor. Added test as use
case demo.

## Why?
The Chasm RPC handler will be used as the abstraction layer for future
work. A grpc interceptor was added to intercept requests to process
boilerplate code so the handlers don't have to regurgitate it. Please
look at the added test as it demonstrates how the RPC handler is
registered and a request gets processed.

## How did you test it?
- [X] built
- [X] run locally and tested manually
- [X] covered by existing tests
- [X] added new unit test(s)
- [ ] added new functional test(s)

## Potential risks
There is a [future
ticket](https://temporalio.atlassian.net/browse/ACT-69) to refactor all
history RPC calls to start using the interceptor as to avoid boilerplate
code. This does need a deeper discussion with the team and we also need
to figure out how to identify the incoming RPC request so we can extract
namespace etc. properly.

---------

Co-authored-by: Roey Berman <[email protected]>
2025-10-03 16:12:19 +00:00

15 lines
286 B
Protocol Buffer

syntax = "proto3";
package temporal.server.chasm.lib.tests.proto.v1;
option go_package = "go.temporal.io/server/chasm/lib/tests/gen/testspb;testspb";
message TestRequest {
string request_id = 1;
}
message TestResponse {
string request_id = 1;
bool has_engine_ctx = 2;
}