Best way to set up Restlet with non-blocking connector

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Best way to set up Restlet with non-blocking connector

Robert Sjödahl
Hey,

I'm using Restlet version 2.3.12 running it today with Jetty. I would like to run Restlet with a non-blocking connector. I found that there is an NIO connector. I tried that and it seems to work fine but in the documentation, it says that it is in "preview mode"? There do also seem to be an org.restlet.ext.netty package, but I read somewhere that it was an experimental feature in 2.0 and that it was removed in 2.1. And also it is not listed as a connector here: https://restlet.com/open-source/documentation/user-guide/2.3/core/base/connectors.

So what is the best way to run Restlet with a non-blocking asynchronous server connector? Should I use the NIO connector or a netty connector? Is there a third alternative?

I also know that Restlet will support netty (better?) from version 3.0, according to the roadmap: https://github.com/restlet/restlet-framework-java/wiki/Road-map-of-version-3

Thanks,
/Robert

--
You received this message because you are subscribed to the Google Groups "Restlet Framework (Discuss)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

RE: Best way to set up Restlet with non-blocking connector

Jerome Louvel-4

Hi Robert,

The best way today to get asynchronous NIO performance today is to use the Jetty connector and to configure it properly (see the available parameters).

The NIO and Netty extensions were experimentation to provide alternative NIO-based connectors but never reached enough feature completion nor quality to be used in production.

In our plans for version 3, there is a replacement for the pluggable connectors architecture in version 2 by a single connector based on the Netty framework. I'll come back to this point in your next email.

Best regards,
Jerome


De : [hidden email] <[hidden email]> de la part de Robert Sjödahl <[hidden email]>
Envoyé : dimanche 28 janvier 2018 19:04:25
À : Restlet Framework (Discuss)
Objet : Best way to set up Restlet with non-blocking connector
 
Hey,

I'm using Restlet version 2.3.12 running it today with Jetty. I would like to run Restlet with a non-blocking connector. I found that there is an NIO connector. I tried that and it seems to work fine but in the documentation, it says that it is in "preview mode"? There do also seem to be an org.restlet.ext.netty package, but I read somewhere that it was an experimental feature in 2.0 and that it was removed in 2.1. And also it is not listed as a connector here: https://restlet.com/open-source/documentation/user-guide/2.3/core/base/connectors.

So what is the best way to run Restlet with a non-blocking asynchronous server connector? Should I use the NIO connector or a netty connector? Is there a third alternative?

I also know that Restlet will support netty (better?) from version 3.0, according to the roadmap: https://github.com/restlet/restlet-framework-java/wiki/Road-map-of-version-3

Thanks,
/Robert

--
You received this message because you are subscribed to the Google Groups "Restlet Framework (Discuss)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Best way to set up Restlet with non-blocking connector

Robert Sjödahl
Ok, so basically reading corresponding docs for Jetty 9.2.x as this (could not find thoose docs online?) and configuring jetty accordingly: https://www.eclipse.org/jetty/documentation/9.3.x/high-load.html

Regards,
/Robert

On Friday, February 2, 2018 at 10:56:40 AM UTC+1, jlouvel wrote:

Hi Robert,

The best way today to get asynchronous NIO performance today is to use the Jetty connector and to configure it properly (see <a href="https://restlet.com/open-source/documentation/javadocs/2.3/jse/ext/index.html?org/restlet/ext/jetty/JettyServerHelper.html" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Frestlet.com%2Fopen-source%2Fdocumentation%2Fjavadocs%2F2.3%2Fjse%2Fext%2Findex.html%3Forg%2Frestlet%2Fext%2Fjetty%2FJettyServerHelper.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGYD6UupanT5h8IisDCg4zQnRfhJw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Frestlet.com%2Fopen-source%2Fdocumentation%2Fjavadocs%2F2.3%2Fjse%2Fext%2Findex.html%3Forg%2Frestlet%2Fext%2Fjetty%2FJettyServerHelper.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGYD6UupanT5h8IisDCg4zQnRfhJw&#39;;return true;">the available parameters).

The NIO and Netty extensions were experimentation to provide alternative NIO-based connectors but never reached enough feature completion nor quality to be used in production.

In our plans for version 3, there is a replacement for the pluggable connectors architecture in version 2 by a single connector based on the Netty framework. I'll come back to this point in your next email.

Best regards,
Jerome


De : <a href="javascript:" target="_blank" gdf-obfuscated-mailto="8hqjLbd4BwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">framewor...@... <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="8hqjLbd4BwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">framewor...@...> de la part de Robert Sjödahl <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="8hqjLbd4BwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">robert....@...>
Envoyé : dimanche 28 janvier 2018 19:04:25
À : Restlet Framework (Discuss)
Objet : Best way to set up Restlet with non-blocking connector
 
Hey,

I'm using Restlet version 2.3.12 running it today with Jetty. I would like to run Restlet with a non-blocking connector. I found that there is an NIO connector. I tried that and it seems to work fine but in the documentation, it says that it is in "preview mode"? There do also seem to be an org.restlet.ext.netty package, but I read somewhere that it was an experimental feature in 2.0 and that it was removed in 2.1. And also it is not listed as a connector here: <a href="https://restlet.com/open-source/documentation/user-guide/2.3/core/base/connectors" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Frestlet.com%2Fopen-source%2Fdocumentation%2Fuser-guide%2F2.3%2Fcore%2Fbase%2Fconnectors\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG3Ak1xyz9n63qPTxQRXiEwH0gsrw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Frestlet.com%2Fopen-source%2Fdocumentation%2Fuser-guide%2F2.3%2Fcore%2Fbase%2Fconnectors\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG3Ak1xyz9n63qPTxQRXiEwH0gsrw&#39;;return true;">https://restlet.com/open-source/documentation/user-guide/2.3/core/base/connectors.

So what is the best way to run Restlet with a non-blocking asynchronous server connector? Should I use the NIO connector or a netty connector? Is there a third alternative?

I also know that Restlet will support netty (better?) from version 3.0, according to the roadmap: <a href="https://github.com/restlet/restlet-framework-java/wiki/Road-map-of-version-3" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frestlet%2Frestlet-framework-java%2Fwiki%2FRoad-map-of-version-3\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFa_9ORIEb_xuTVwsDZTZK1DIv_TQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frestlet%2Frestlet-framework-java%2Fwiki%2FRoad-map-of-version-3\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFa_9ORIEb_xuTVwsDZTZK1DIv_TQ&#39;;return true;">https://github.com/restlet/restlet-framework-java/wiki/Road-map-of-version-3

Thanks,
/Robert

--
You received this message because you are subscribed to the Google Groups "Restlet Framework (Discuss)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

RE: Best way to set up Restlet with non-blocking connector

Jerome Louvel-4

The mode I was suggesting relies on the embedded Jetty connector (based on org.restlet.ext.jetty.jar) as documented here.

You can also use Jetty as a regular Servlet container with the org.restlet.ext.servlet.jar bridge provided and documented here.


Best regards,

Jerome



De : [hidden email] <[hidden email]> de la part de Robert Sjödahl <[hidden email]>
Envoyé : mercredi 7 février 2018 10:04:14
À : Restlet Framework (Discuss)
Cc : [hidden email]
Objet : Re: Best way to set up Restlet with non-blocking connector
 
Ok, so basically reading corresponding docs for Jetty 9.2.x as this (could not find thoose docs online?) and configuring jetty accordingly: https://www.eclipse.org/jetty/documentation/9.3.x/high-load.html

Regards,
/Robert

On Friday, February 2, 2018 at 10:56:40 AM UTC+1, jlouvel wrote:

Hi Robert,

The best way today to get asynchronous NIO performance today is to use the Jetty connector and to configure it properly (see the available parameters).

The NIO and Netty extensions were experimentation to provide alternative NIO-based connectors but never reached enough feature completion nor quality to be used in production.

In our plans for version 3, there is a replacement for the pluggable connectors architecture in version 2 by a single connector based on the Netty framework. I'll come back to this point in your next email.

Best regards,
Jerome


De : framewor...@... <framewor...@...> de la part de Robert Sjödahl <robert....@...>
Envoyé : dimanche 28 janvier 2018 19:04:25
À : Restlet Framework (Discuss)
Objet : Best way to set up Restlet with non-blocking connector
 
Hey,

I'm using Restlet version 2.3.12 running it today with Jetty. I would like to run Restlet with a non-blocking connector. I found that there is an NIO connector. I tried that and it seems to work fine but in the documentation, it says that it is in "preview mode"? There do also seem to be an org.restlet.ext.netty package, but I read somewhere that it was an experimental feature in 2.0 and that it was removed in 2.1. And also it is not listed as a connector here: https://restlet.com/open-source/documentation/user-guide/2.3/core/base/connectors.

So what is the best way to run Restlet with a non-blocking asynchronous server connector? Should I use the NIO connector or a netty connector? Is there a third alternative?

I also know that Restlet will support netty (better?) from version 3.0, according to the roadmap: https://github.com/restlet/restlet-framework-java/wiki/Road-map-of-version-3

Thanks,
/Robert

--
You received this message because you are subscribed to the Google Groups "Restlet Framework (Discuss)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Restlet Framework (Discuss)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].