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

Asynchronous store interface #18

Closed
lvh opened this issue May 11, 2011 · 1 comment
Closed

Asynchronous store interface #18

lvh opened this issue May 11, 2011 · 1 comment
Assignees

Comments

@lvh
Copy link
Owner

lvh commented May 11, 2011

This used to be "deferred creation support" because that's where this problem originally showed up. In reality, it's a deeper problem: we don't have an abstracted store interface.

Right now, it is assumed that creation can be done synchronously: it happens right now, or it doesn't happen at all. In the first case, it returns 201 Created. It's possible that resource creation actually takes a while (ie returns a Deferred from the API ;-)), in which case it should say 202 Accepted.

The asynchronous store interface really just becomes most of the methods currently on ICollection.

@lvh
Copy link
Owner Author

lvh commented Nov 17, 2011

This could work by using DeferredResource, but we really should have the asynchronous interface first.

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

No branches or pull requests

1 participant