-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sample broker implements async instances/bindings flows properly
* `Provision`/`Deprovision`/`Bind`/`Unbind` operations - return `HTTP 202 Accepted` on first invocation for a resource and return operation id - store the operation in a map and flags it as `in-progress` * `GetLastOperation` - returns `in-progress` state upon first invocation for given operation and flags the operation as `done` in the map above - on subsequent invocation, `succeeded` state is returned * Once the last operation succeeds (and is flagged as succeeded in the map), `Provision`/`Deprovision`/`Bind`/`Unbind` return `HTTP 200 OK` * Misc: - last operation handler is common for instances and bindings - helper functions to implement async responses in a common manner - improved logging
- Loading branch information
1 parent
6fce46e
commit 6c92587
Showing
1 changed file
with
91 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters