Comments (5)
Related existing issue: #1077
from kalix-jvm-sdk.
Also related: akka/akka-http#4150 (but I thought we decided to accept the cost of an additional .async for all the Kalix JVM SDK component streams instead of running them in-line)
from kalix-jvm-sdk.
No, sorry, that was probably specifically for streaming in calls so doesn't help here.
Why is that view not replying within at most two-three seconds though?
from kalix-jvm-sdk.
Why is that view not replying within at most two-three seconds though?
It's worse than that. It seems that the CompletionStage is not scheduled until the timeout in the get()
happens. We change it to other values and we see it back in the logs in the runtime. If we set a timeout to 7 seconds, we see:
15:29:39.826 DEBUG kalix.proxy.Serve$ - Received gRPC request [/com.example.action.ServiceMetaDataAction/GetServiceMetaData]
15:30:06.826 DEBUG kalix.proxy.Serve$ - Received gRPC request [/com.example.view.ServiceMetaDataMappingView/GetServiceMetaData]
After that, subsequent calls works immediately.
So I suspect that we are tweaking the thread pool inside akka-grpc (java api) and this is done lazily.
I have the impression that the timeout is triggering something that is providing a thread to complete the CompletionStage (so the call is effectively done at that moment), but then the CompletionStage will fail anyway because it already timeout.
To recap, if a timeout of 20 seconds:
- call hit the runtime after 20 seconds
- call fails with timeout on sdk side
from kalix-jvm-sdk.
And another one: https://discuss.kalix.io/t/how-to-call-and-get-value-from-view-in-controller/318
from kalix-jvm-sdk.
Related Issues (20)
- Maven Surefire/Failsafe bump needs investigation
- failed: Maven sample (java-protobuf-customer-registry-kafka-quickstart) HOT 2
- Improve feedback for missing msg on Eventing testkit
- Create a Kalix Java/protobuf BOM
- Build tests infra to verify that components wiring works as expected
- Filter/middleware APIs
- Release Kalix Java/Scala SDKs v1.3.5
- Eventing Testkit timing out when running multiple integration tests HOT 1
- use more generic typeUrl for Java primitives for code first sdk
- Use Java 21 instead in samples and templates HOT 4
- docs links should be different depending on the SDK
- Use `USER_SERVICE_HOST` and `USER_SERVICE_PORT` instead HOT 1
- support event/state rename in proto sdks
- deserializing proto event payload with non backward compatible change uses a default values HOT 3
- Release Kalix Java/Scala SDKs v1.3.6 HOT 1
- null parameter to workflow step HOT 3
- Release Kalix Java/Scala SDKs 1.3.7 HOT 2
- Add CI test using archetypes
- Allow passing Metadata for asyncReply HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kalix-jvm-sdk.