Inside view protobuf file we are having more services, can we communicate from one service to another service to get data. Or Is it possible to get data from Service1 table(customer) to Service2 table(product) in the query ?
service Service1 {
option (kalix.codegen) = {
view: {}
};
option (kalix.service).acl.allow = { principal: ALL };
rpc updateCustomer(customerEvent) returns (CustomerState) {
option (kalix.method).eventing.in = {
event_sourced_entity: “customer”
};
option (kalix.method).view.update = {
table: “customer”
transform_updates: true
};
}
rpc getCustomer(customerRequest) returns (stream customerResponse) {
option (kalix.method).view.query = {
query: "SELECT * FROM customer "
};
option (google.api.http) = {
get: “/customer/customerRequest”
};
}
}
service Service2 {
option (kalix.codegen) = {
view: {}
};
option (kalix.service).acl.allow = { principal: ALL };
rpc updateProduct(productEvent) returns (ProductState) {
option (kalix.method).eventing.in = {
event_sourced_entity: “product”
};
option (kalix.method).view.update = {
table: “product”
transform_updates: true
};
}
rpc getProduct(productRequest) returns (stream productResponse) {
option (kalix.method).view.query = {
query: "SELECT * FROM product "
};
option (google.api.http) = {
get: “/product/productRequest”
};
}
}