-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Examples for integration with tokio #205
Comments
Yes! Same question, specifically for making AWS calls via the Rusoto crate, which is based on Tokio reactor as well. How can we get to run on same reactor as the Actix server? |
maybe you can get handle as I understand Rusoto uses hyper 0.11, which is tokio-core based. |
I will migrate actix to Tokio in next version. actix 0.6 and actix-web 0.7 |
@fafhrd91 is it there already in terms of maturity / stability / tuning to make the switch? |
@nayato I don’t know. But I hope with local executor we won’t loose performance. On other hand we should get some boost with simd in 1.27 |
@fafhrd91 I don't think there's anything magic about SIMD support. That is unless it is explicitly employed in HTTP parsing, unmasking WS payload, etc. Am I missing smth? :) |
you are not, but with stable simd we can start using simd :) |
I'm also interested in examples on how to integrate tokio (especially tokio-proto) with actix and actix-web. If anyone has pointers or working examples that would be greatly appreciated |
for current stable 0.6 release only way to integration with tokio-core is Handle. master uses tokio, so |
Unfortunately mixing actix-web 0.7 and old-tokio ( |
You're not supposed to mix old tokio at all, it would be the best to get rid of it |
Sure. Unfortunately, a lot of existing crates haven't been updated to new tokio yet. |
Maybe it is sad that these libraries are abandoned but no one has plans for actix to support |
Yeah, that's fine. |
is it fine to run actix and another tokio runtime side by side? i dont want to mix them. |
I have seen that with new |
See #1283. |
I have an existing crate built upon tokio that I want to use within a web server. It makes heavy use of tokio timers and
spawn
. There don't appear to be any examples in actix-web of how to integrate tokio-based code with the tokio event loops underpinning actix. I'm also not sure how I would go about getting a reactor handle to call spawn on in actix-web.The text was updated successfully, but these errors were encountered: