Skip to content
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

feat: add s3 api. #49

Closed
wants to merge 3 commits into from
Closed

feat: add s3 api. #49

wants to merge 3 commits into from

Conversation

ZakiFan
Copy link

@ZakiFan ZakiFan commented Jun 27, 2022

Description

add s3 api.

Issue reference

#48

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

@kevinten10
Copy link
Member

合并到develop分支吧

@@ -55,7 +55,7 @@ For a Maven project, add the following to your `pom.xml` file:
<dependency>
<groupId>group.rxcloud</groupId>
<artifactId>cloud-runtimes-api</artifactId>
<version>1.15.RELEASE</version>
<version>1.16-SNAPSHOT</version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.16.RELEASE

@@ -69,6 +69,6 @@ For a Gradle project, add the following to your `build.gradle` file:
dependencies {
// ...
// https://mvnrepository.com/artifact/group.rxcloud/cloud-runtimes-api
implementation group: 'group.rxcloud', name: 'cloud-runtimes-api', version: '1.15.RELEASE'
implementation group: 'group.rxcloud', name: 'cloud-runtimes-api', version: '1.16-SNAPSHOT'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.16.RELEASE

* @param putObjectInput
* @return
*/
PutObjectOutput putObject(PutObjectInput putObjectInput);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不需要考虑异步情况吗?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果考虑未来有异步调用,建议和其他api保持一致,使用mono/flux。
这样既可以有异步,又可以有同步。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我觉得还是考虑异步吧,s3不像redis,redis确保响应很快所以就做成同步的了,异步意义不大。
但s3会涉及到长时间的大数据传输,如果不支持异步,未来可能会遇到瓶颈。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

赞同你的建议,我改一下

@ZakiFan ZakiFan closed this Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants