New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for setting the parameter size accepted by the interface and custom timeout in API file #1713
Conversation
I think you just need to use MaxBytes in ResConf. |
If maxbytes is set in the configuration file, all interfaces are the same. But sometimes you just want to set the upload file interface larger. |
Now that you've chosen microservices, think in terms of microservices. Would it be a better idea to have the uploading module as a separate service? |
Using API as the gateway of micro service |
I prefer to use Also, if service level, just set it in |
added time units? |
yes, for |
My thoughts:
|
…e and custom timeout and maxbytes in API file (zeromicro#1713) * Added support for setting the parameter size accepted by the interface * support custom timeout and maxbytes in API file * support timeout used unit * remove goctl maxBytes
It can be used like this
custom timeout and maxbytes in api file can be used like this
The unit of timeout is
time.Second
general code