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

Bulk/Batch Requests #3

Open
sebbader opened this issue Sep 23, 2022 · 11 comments
Open

Bulk/Batch Requests #3

sebbader opened this issue Sep 23, 2022 · 11 comments
Labels
Milestone

Comments

@sebbader
Copy link
Contributor

Add a request pattern to allow sending of more than one API Operation with one request. A reference might be the OData Batch Requests: https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#_Toc31359017

This feature also opens the door for general asynchronous API Operations. (Note: API Operations as meant in this issue is not referring to an invocation of the SubmodelElement Operation.)

@sebbader
Copy link
Contributor Author

Issue relates to the finding Fethualla#6.

@BirgitBoss
Copy link
Collaborator

Of course these are two different requirements but the orignal request came from Catena-X

  • asyncronous parallel call of API-operations
  • new API opeartion for batch

@BirgitBoss
Copy link
Collaborator

This feature needs to be available in V3.0, please change milestone

@BirgitBoss
Copy link
Collaborator

Batch: Several requests with different HTTP requests can be mixed in a batch request. For example, create x twins and delete this two twins
Bulk: In a bulk, requests are combined with just one and the same HTTP operation. For example, create x twins. The complete operation is atomic.

@sebbader-sap sebbader-sap modified the milestones: 3.x, 3.1 Jun 22, 2023
@sebbader-sap
Copy link
Contributor

See also the Google Drive API

@aorzelskiGH
Copy link

In the ZVEI DPP40 and PCF showcase there are 2 Bulk cases

  • GET many submodels from many repositories
  • POST many descriptors from a repository

An example for GET is a repository with 30 AAS and 5 submodels each.
This results in 150 GET operations, which can be combined in 1 Bulk GET.

The example for POST in this case includes 30 POST operations of AAS descriptors.
The POSTs need more performance, because they are checked by the company firewall/proxy.

@sebbader-sap
Copy link
Contributor

See #183

@sebbader
Copy link
Contributor Author

Just found an additional problem. Introducing Bulk OpenAPI files implies upgrading from OpenAPI V3.0.3 to V3.1.0 as otherwise a body in DELETE is displayed as an error. However, SwaggerHub does not yet support Domains, meaning we can not link to our Part 2 and Part 1 classes.
Source https://support.smartbear.com/swaggerhub/docs/en/openapi-3-1-support.html:
image

@sebbader
Copy link
Contributor Author

@BirgitBoss
Copy link
Collaborator

What is the current status? In the meantime it looks good and is in review and implementation phase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants