0

Hi Micronaut Development Community

We are trying to create Micronaut based microservices(in Java) which make calls to other HTTP services and Database(both Dynamo DB and RDS on AWS). What are the recommended Micronaut libraries/http client, to ensure the end to end flow remains reactive?

We have implemented the microservices using micronaut, but there are Read Timeout issues appearing for higher loads - is that expected?

1 Answers1

1

Resources:

Micronaut Documentation:

See Micronaut User Guide, it has sections on 6.13 Reactive HTTP Request Processing (Reactor/RxJava)

6.13 Reactive HTTP Request Processing

As mentioned previously, Micronaut is built on Netty which is designed around an Event loop model and non-blocking I/O. Micronaut executes code defined in @Controller beans in the same thread as the request thread (an Event Loop thread).

This makes it critical that if you do any blocking I/O operations (for example interactions with Hibernate/JPA or JDBC) that you offload those tasks to a separate thread pool that does not block the Event loop.

^ Might be the cause of your read timeouts ^

Micronaut Guides:

Support:

ShingJo
  • 614
  • 1
  • 7