I have a REST API implementation which has few endpoints that uploads/downloads files, the API's are exposed through the API Gateway (On-premises WebMethods gateway), the size of this files varies between few KBs to several Megabytes. In performance testing i noticed that the Gateway induced about 40% performant degradation, and searching for the reasons led me to few links related to Amazon API Gateway limiting payload sizes to 10MB - i am not sure if this limitation is specific to AWS Gateway, or, a generic limitations across various API Gateways (as part of best practices). I have below questions related to API Gateway:
- Should large file (size?) upload/download be avoided when using API Gateways? Or, should file upload/download be completely avoided through the gateway?
- How to handle REST endpoints that supports Multipart/form-data?
Thanks.
question from:
https://stackoverflow.com/questions/65933182/is-it-recommended-to-upload-download-large-file-through-api-gateway 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…