This is an automated email from the ASF dual-hosted git repository. robertlazarski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git
commit 9b0478f123951471de97e043f56f1f4d5fd8e6f9 Author: Robert Lazarski <[email protected]> AuthorDate: Mon Dec 22 13:21:35 2025 -1000 http/2 doc updates --- .../docs/openapi-rest-advanced-http2-userguide.xml | 46 ---------------------- src/site/xdoc/docs/toc.xml | 8 ++-- 2 files changed, 4 insertions(+), 50 deletions(-) diff --git a/src/site/xdoc/docs/openapi-rest-advanced-http2-userguide.xml b/src/site/xdoc/docs/openapi-rest-advanced-http2-userguide.xml index 0e02f546fc..e9d7ab7768 100644 --- a/src/site/xdoc/docs/openapi-rest-advanced-http2-userguide.xml +++ b/src/site/xdoc/docs/openapi-rest-advanced-http2-userguide.xml @@ -443,22 +443,6 @@ export CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote.authenticate export CATALINA_OPTS="$CATALINA_OPTS -Dorg.apache.coyote.http2.Http2Protocol.jmxMetrics=true" </pre> -<h3>Tomcat vs WildFly Performance Comparison</h3> - -<p>Real-world performance comparison between Tomcat 11 and WildFly 32 for OpenAPI + HTTP/2:</p> - -<table border="1"> -<tr><th>Performance Metric</th><th>Tomcat 11 + HTTP/2</th><th>WildFly 32 + HTTP/2</th><th>Improvement</th></tr> -<tr><td><strong>OpenAPI Spec Generation (5MB)</strong></td><td>1.4s</td><td>1.8s</td><td>22% faster</td></tr> -<tr><td><strong>Swagger UI Load Time</strong></td><td>2.1s</td><td>2.8s</td><td>25% faster</td></tr> -<tr><td><strong>Large JSON Response (50MB)</strong></td><td>4.2s</td><td>5.2s</td><td>19% faster</td></tr> -<tr><td><strong>Concurrent Streams (200 streams)</strong></td><td>6.8s</td><td>9.1s</td><td>25% faster</td></tr> -<tr><td><strong>Memory Usage (baseline)</strong></td><td>480MB heap</td><td>720MB heap</td><td>33% less memory</td></tr> -<tr><td><strong>Connection Count</strong></td><td>8-12 connections</td><td>12-18 connections</td><td>25% fewer</td></tr> -<tr><td><strong>Cold Start Time</strong></td><td>3.2s</td><td>8.7s</td><td>63% faster startup</td></tr> -<tr><td><strong>Configuration Time</strong></td><td>2-3 minutes</td><td>15-20 minutes</td><td>83% faster setup</td></tr> -</table> - <h3>Advanced Tomcat HTTP/2 Optimizations</h3> <p>Advanced configuration patterns specific to Tomcat for maximum performance:</p> @@ -628,36 +612,6 @@ openapi.security.http2.tlsSessionCache=300 # 5-minute TLS session cache openapi.security.http2.alpnNegotiation=true # Secure protocol negotiation </pre> -<h3>API Rate Limiting with HTTP/2</h3> - -<p>HTTP/2 flow control provides natural rate limiting capabilities:</p> - -<pre> -// HTTP/2 aware rate limiting -@Component -public class Http2RateLimitingInterceptor implements HandlerInterceptor { - - @Override - public boolean preHandle(HttpServletRequest request, - HttpServletResponse response, - Object handler) throws Exception { - - if (isHttp2Request(request)) { - // HTTP/2 flow control provides built-in backpressure - return handleHttp2RateLimit(request, response); - } else { - // Traditional HTTP/1.1 rate limiting - return handleHttp1RateLimit(request, response); - } - } - - private boolean isHttp2Request(HttpServletRequest request) { - return "HTTP/2.0".equals(request.getProtocol()) || - "2.0".equals(request.getHeader("X-HTTP-Version")); - } -} -</pre> - <h2>Monitoring and Observability</h2> <h3>HTTP/2 + OpenAPI Metrics</h3> diff --git a/src/site/xdoc/docs/toc.xml b/src/site/xdoc/docs/toc.xml index e9b592757d..3415f8743c 100644 --- a/src/site/xdoc/docs/toc.xml +++ b/src/site/xdoc/docs/toc.xml @@ -60,8 +60,8 @@ Guide</a></li> <li>7.2 <a href="openapi-rest-userguide.html#OpenAPI_Integration_Features">OpenAPI Integration Features</a></li> <li>7.3 <a href="openapi-rest-userguide.html#Samples">Complete Sample Application</a></li> <li>7.4 <a href="openapi-rest-userguide.html#Swagger_UI">Interactive Swagger UI</a></li> -<li><strong>7.5 <a href="openapi-rest-advanced-userguide.html">Advanced Enterprise OpenAPI Features</a></strong></li> -<li><strong>7.6 <a href="openapi-rest-advanced-http2-userguide.html">OpenAPI + HTTP/2 Performance Integration</a></strong> (🏆 Competitive Advantage)</li> +<li>7.5 <a href="openapi-rest-advanced-userguide.html">Advanced Enterprise OpenAPI Features</a></li> +<li>7.6 <a href="openapi-rest-advanced-http2-userguide.html">OpenAPI + HTTP/2 Performance Integration</a></li> </ul> </li> <li><a href="axis2config.html">Configuration @@ -141,8 +141,8 @@ Support</a></li> <li><a href="openapi-rest-userguide.html#OpenAPI_Integration_Features">Automatic OpenAPI 3.0.1 Generation</a></li> <li><a href="openapi-rest-userguide.html#Samples">Complete JSON REST API Examples</a></li> <li><a href="openapi-rest-userguide.html#Swagger_UI">Interactive API Testing with Swagger UI</a></li> - <li><strong><a href="openapi-rest-advanced-userguide.html">Advanced Enterprise Features</a></strong></li> - <li><strong><a href="openapi-rest-advanced-http2-userguide.html">HTTP/2 Performance Integration</a></strong> (🚀 Up to 40% faster)</li> + <li><a href="openapi-rest-advanced-userguide.html">Advanced Enterprise Features</a></li> + <li><a href="openapi-rest-advanced-http2-userguide.html">HTTP/2 Performance Integration</a></li> </ul> </li> </ul>
