简体   繁体   中英

Swagger effect on REST API performance

I am planning to implement Swagger for our REST API's. But the main worry we have is, did swagger slows down the service. ?1 .Since the swagger annotations will be placed on the REST calls, so will they will be called every time we hit a REST service or will it be called only when there is change in service signature?? ?. Will this extra overhead on the service signature will effect the response time (performance) of the service. ??

I think the best approach for you would be using maven with your project; to avoid "slowing down" your API.

If you are using JAX-RS or Spring you could use this library . Unlike swagger-core, swagger-maven-plugin does not actively serve the spec with the rest of the application; it generates the spec as a build artifact to be used in downstream Swagger tooling.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM