Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocking library behaviour #55

Open
grzegorzekkk opened this issue Feb 15, 2024 · 1 comment
Open

Blocking library behaviour #55

grzegorzekkk opened this issue Feb 15, 2024 · 1 comment

Comments

@grzegorzekkk
Copy link

Hi, thanks for developing this library.

I would like to use it in a project using a reactive, non-blocking technology stack, i.e. spring webflux, kotlin coroutines.

My question is, does the library call and listen for messages in a blocking way or not?

I noticed that it uses okhttp underneath, which seems to only perform requests in a blocking manner, but perhaps you have the ability to confirm how this library works.

Thanks in advance for your reply

@xhanin
Copy link
Contributor

xhanin commented Feb 15, 2024

Indeed the library is using blocking IO for the moment. With virtual threads in java 21, it should be possible to get non blocking behavior without too much hassle, but we haven't tested that yet. You could also reuse only the data structures and mappers from the library, and use your own transport wiring if you want to be in control of how this is handled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants