简体   繁体   中英

Mashery IODocs - Latency issue due to heavy json config file

Mashery IOdocs is a really a great tools for documenting API. I'm using it for a quite big project with more then 50 methods and complex structures sent to this API, so that my json config file is more than 4000 lines long. I self-host IOdocs on a VPS along with other stuff and the doc is awfully slow because of my long json file. Any idea to cope with this latency ? Except obviously split my json config file into several.

I have a fork of IO Docs with some performance improvements which may help. In this instance they involve stripping out json-minify (which is only used to allow comments in the source specifications), server-side cacheing of the specifications and not having to load the specification via a synchronous AJAX call on the client.

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