Typo, it was slower, not faster.

On Sep 26, 2017 2:20 PM, "Charles Capps" <[email protected]> wrote:

> We did A/B testing where we deployed:
> * Version A of simple service - implemented with Jersey and swagger
> annotations
> * Version B of simple service - identical code, but with Endpoints v2
> servlet filters, and Endpoints v2 deployed along with the service using the
> generated swagger.json.
>
> We ran Gatling tests that did thousands of requests from a GCE virtual
> machine (to rule out any slowness in our local internet connection.)
>
> Version A -- which was identical except we didn't deploy Endpoints v2 --
> was consistently ~100ms faster.
>
> We reproduced this in multiple tests, including a test that deployed one
> of our real world services with or without Endpoints v2.
>
> There seems to be some significant lag introduced by Endpoints v2. We also
> just don't need whatever console page is added by adding the Endpoints v2
> servlet filters and so on.
>
> On Tuesday, September 26, 2017 at 1:44:33 PM UTC-7, Frank Natividad wrote:
>>
>> Hi Charles,
>>
>> I'm curious about the different experiments performed with Endpoints
>> Frameworks v2. Could you tell us more about that?
>>
>> Thanks!
>>
>> On Friday, September 22, 2017 at 8:32:01 AM UTC-7, Charles Capps wrote:
>>>
>>> Hi Nico,
>>>
>>> It's a straightforward process if you use the Jersey Servlet container,
>>> since GAE works well with any servlet-based technology. In the services we
>>> have already migrated to Jersey, we only need these 2 maven dependencies
>>> from Jersey (currently using version 2.25.1):
>>>
>>> <dependency>
>>>>       <groupId>org.glassfish.jersey.containers</groupId>
>>>>       <artifactId>jersey-container-servlet-core</artifactId>
>>>>       <version>${jersey.version}</version>
>>>>     </dependency>
>>>>     <dependency>
>>>>       <groupId>org.glassfish.jersey.media</groupId>
>>>>       <artifactId>jersey-media-json-jackson</artifactId>
>>>>       <version>${jersey.version}</version>
>>>>     </dependency>
>>>
>>>
>>> Then, in your web.xml, you can define a servlet like:
>>>
>>>> <servlet>
>>>>     <servlet-name>MyServiceApplication</servlet-name>
>>>>     <servlet-class>org.glassfish.jersey.servlet.ServletContainer
>>>> </servlet-class>
>>>>     <init-param>
>>>>       <param-name>javax.ws.rs.Application</param-name>
>>>>       <param-value>com.mycompany.jersey.MyServiceApplication</para
>>>> m-value>
>>>>     </init-param>
>>>>     <load-on-startup>1</load-on-startup>
>>>>   </servlet>
>>>
>>>
>>> where the MyServiceApplication class extends the JAX-RS Application base
>>> class, for which you can find documentation at
>>> https://jersey.github.io/documentation/latest/index.html
>>>
>>> Good luck migrating!
>>>
>>> On Thursday, September 21, 2017 at 11:52:47 PM UTC-7, Nico Verwer wrote:
>>>>
>>>> Is there a guide on how to use Jersey on App Engine?
>>>> I am still on Cloud Endpoints v1, and I am reluctant to migrate to v2
>>>> because it might be deprecated before I finish the migration. Jersey is
>>>> probably more stable and future-proof. And, as you indicate, it is faster
>>>> than GCE v2.
>>>>
>>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/google-appengine/Ab-1Pa8GJE0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/cea39b28-145f-442d-91b7-
> 3910d3909f79%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/cea39b28-145f-442d-91b7-3910d3909f79%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAGnsvRUsAHn7FB2mnHP%3DPWgz1vgBRbNHSLe%2BtjBCZWHnXxoYng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to