https://linen.dev logo
#help
Title
# help
a

Anton Smirnov

08/05/2023, 9:59 PM
Hi all, I am testing a system with very low tolerances for response times (<10ms). With Docker image and Json Templates (with global response template transformer) I can't get less than 20ms avg. Is there a way to increase response building speed? If not, will remaking Java application with Wiremock lib help with decreasing latency?
o

Oleg Nenashev

08/06/2023, 11:39 AM
Hi. One needs to profile what happens, but the default image is definitely not designed for millisecond-range response times. Switching to non-docker App might be required
Maybe some Jetty tuning will be needed as well.
a

Anton Smirnov

08/06/2023, 12:30 PM
switching to non-docker App
you mean standalone jar or building my app from scrach with lirary? What kind of Jetty tuning you mean? in-code adjusting, or jar parameters?
o

Oleg Nenashev

08/06/2023, 12:33 PM
switching to non-docker App
you mean standalone jar or building my app from scrach with lirary?
Standalone JAR should be enough
What kind of Jetty tuning you mean? in-code adjusting, or jar parameters?
Hopefully JAR parameters will be enough. Again, hard to say without profiling
a

Anton Smirnov

08/06/2023, 12:34 PM
what if I build my own docker image around a standalone ? will that help?
o

Oleg Nenashev

08/06/2023, 12:35 PM
Hard to say without profiling (c) 🙂
Most likely yest
a

Anton Smirnov

08/06/2023, 12:37 PM
Thanks for answer, I ll definetely try this out!
o

Oleg Nenashev

08/06/2023, 12:37 PM
But really, it depends on so many factors that one cannot say. There are so many possible perfromance tweaks possible. You have to keep in mind that the Docker Engine is not great when it comes to networking delays. You may get to 10ms with Docker, but maybe using another container runtime is a first step if it does not fit
3 Views